pub struct Scrollbar<'a> { /* private fields */ }Expand description
A widget to display a scrollbar.
Implementations§
Source§impl<'a> Scrollbar<'a>
impl<'a> Scrollbar<'a>
Sourcepub fn new(orientation: ScrollbarOrientation) -> Self
pub fn new(orientation: ScrollbarOrientation) -> Self
Create a new scrollbar with the given orientation.
Sourcepub fn thumb_style(self, style: Style) -> Self
pub fn thumb_style(self, style: Style) -> Self
Set the style for the thumb (draggable indicator).
Sourcepub fn track_style(self, style: Style) -> Self
pub fn track_style(self, style: Style) -> Self
Set the style for the track background.
Trait Implementations§
Source§impl Accessible for Scrollbar<'_>
impl Accessible for Scrollbar<'_>
Source§fn accessibility_nodes(&self, area: Rect) -> Vec<A11yNodeInfo>
fn accessibility_nodes(&self, area: Rect) -> Vec<A11yNodeInfo>
Return accessibility node(s) for this widget at the given bounds. Read more
Source§impl<'a> StatefulWidget for Scrollbar<'a>
impl<'a> StatefulWidget for Scrollbar<'a>
Auto Trait Implementations§
impl<'a> Freeze for Scrollbar<'a>
impl<'a> RefUnwindSafe for Scrollbar<'a>
impl<'a> Send for Scrollbar<'a>
impl<'a> Sync for Scrollbar<'a>
impl<'a> Unpin for Scrollbar<'a>
impl<'a> UnsafeUnpin for Scrollbar<'a>
impl<'a> UnwindSafe for Scrollbar<'a>
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