pub struct PLYScrollView { /* private fields */ }Expand description
A view that allows the scrolling and zooming of its contained views.
Implementations§
Source§impl PLYScrollView
impl PLYScrollView
Sourcepub fn new() -> PLYScrollView
pub fn new() -> PLYScrollView
Initializes a newly allocated scroll view.
Sourcepub fn set_content_layout(&mut self, callback: impl FnMut() -> CGRect + 'static)
pub fn set_content_layout(&mut self, callback: impl FnMut() -> CGRect + 'static)
Sets the layout of the content view.
Sourcepub fn set_indicator_style(&mut self, style: UIScrollViewIndicatorStyle)
pub fn set_indicator_style(&mut self, style: UIScrollViewIndicatorStyle)
Sets the style of the scroll indicators.
Sourcepub fn set_scroll_padding(&mut self, padding: PLYByEdge<PLYDimension>)
pub fn set_scroll_padding(&mut self, padding: PLYByEdge<PLYDimension>)
Sets the custom distance that the content view is inset from the safe area or scroll view edges.
Sourcepub fn set_scrollbar_padding(&mut self, padding: PLYByEdge<PLYDimension>)
pub fn set_scrollbar_padding(&mut self, padding: PLYByEdge<PLYDimension>)
Sets the distance the scroll indicators are inset from the edge of the scroll view.
Trait Implementations§
Source§impl Clone for PLYScrollView
impl Clone for PLYScrollView
Source§impl Drop for PLYScrollView
impl Drop for PLYScrollView
Source§impl Raw for PLYScrollView
impl Raw for PLYScrollView
Auto Trait Implementations§
impl Freeze for PLYScrollView
impl RefUnwindSafe for PLYScrollView
impl !Send for PLYScrollView
impl !Sync for PLYScrollView
impl Unpin for PLYScrollView
impl UnsafeUnpin for PLYScrollView
impl UnwindSafe for PLYScrollView
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more