pub struct Scrollbar<Message = ()> { /* private fields */ }Implementations§
Source§impl<Message> Scrollbar<Message>
impl<Message> Scrollbar<Message>
pub fn new(orientation: ScrollbarOrientation) -> Self
pub fn state(self, state: ScrollbarState) -> Self
pub fn position(self, position: usize) -> Self
pub fn content_length(self, content_length: usize) -> Self
pub fn viewport_length(self, viewport_length: usize) -> Self
pub fn viewport_content_length(self, viewport_length: usize) -> Self
pub fn orientation(self, orientation: ScrollbarOrientation) -> Self
pub fn orientation_and_symbol( self, orientation: ScrollbarOrientation, symbols: ScrollbarSymbolSet, ) -> Self
pub fn symbols(self, symbols: ScrollbarSymbolSet) -> Self
pub fn thumb_symbol(self, thumb_symbol: impl Into<String>) -> Self
pub fn thumb_style<S: Into<Style>>(self, style: S) -> Self
pub fn track_symbol<S: Into<String>>(self, track_symbol: Option<S>) -> Self
pub fn track_style<S: Into<Style>>(self, style: S) -> Self
pub fn begin_symbol<S: Into<String>>(self, begin_symbol: Option<S>) -> Self
pub fn begin_style<S: Into<Style>>(self, style: S) -> Self
pub fn end_symbol<S: Into<String>>(self, end_symbol: Option<S>) -> Self
pub fn end_style<S: Into<Style>>(self, style: S) -> Self
pub fn on_scroll<F>(self, handler: F) -> Self
pub fn layout(self, layout: Layout) -> Self
pub fn style<S: Into<Style>>(self, style: S) -> Self
pub fn build(self) -> Element<Message>
Trait Implementations§
Auto Trait Implementations§
impl<Message> Freeze for Scrollbar<Message>
impl<Message = ()> !RefUnwindSafe for Scrollbar<Message>
impl<Message = ()> !Send for Scrollbar<Message>
impl<Message = ()> !Sync for Scrollbar<Message>
impl<Message> Unpin for Scrollbar<Message>
impl<Message> UnsafeUnpin for Scrollbar<Message>
impl<Message = ()> !UnwindSafe for Scrollbar<Message>
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