pub struct Scrollbar { /* private fields */ }Expand description
A scrollbar within a Scrollable.
Implementations§
Source§impl Scrollbar
impl Scrollbar
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates new Scrollbar for use in a Scrollable.
Create a Scrollbar with zero width to allow a Scrollable to scroll without a visible
scroller.
Sourcepub fn width(self, width: impl Into<Pixels>) -> Self
pub fn width(self, width: impl Into<Pixels>) -> Self
Sets the scrollbar width of the Scrollbar .
Sourcepub fn margin(self, margin: impl Into<Pixels>) -> Self
pub fn margin(self, margin: impl Into<Pixels>) -> Self
Sets the scrollbar margin of the Scrollbar .
Sourcepub fn scroller_width(self, scroller_width: impl Into<Pixels>) -> Self
pub fn scroller_width(self, scroller_width: impl Into<Pixels>) -> Self
Sets the scroller width of the Scrollbar .
Trait Implementations§
impl Copy for Scrollbar
impl StructuralPartialEq for Scrollbar
Auto Trait Implementations§
impl Freeze for Scrollbar
impl RefUnwindSafe for Scrollbar
impl Send for Scrollbar
impl Sync for Scrollbar
impl Unpin for Scrollbar
impl UnsafeUnpin for Scrollbar
impl UnwindSafe for Scrollbar
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