Skip to main content

Scrollbar

Struct Scrollbar 

Source
pub struct Scrollbar<Message = ()> { /* private fields */ }

Implementations§

Source§

impl<Message> Scrollbar<Message>

Source

pub fn new(orientation: ScrollbarOrientation) -> Self

Source

pub fn state(self, state: ScrollbarState) -> Self

Source

pub fn position(self, position: usize) -> Self

Source

pub fn content_length(self, content_length: usize) -> Self

Source

pub fn viewport_length(self, viewport_length: usize) -> Self

Source

pub fn viewport_content_length(self, viewport_length: usize) -> Self

Source

pub fn orientation(self, orientation: ScrollbarOrientation) -> Self

Source

pub fn orientation_and_symbol( self, orientation: ScrollbarOrientation, symbols: ScrollbarSymbolSet, ) -> Self

Source

pub fn symbols(self, symbols: ScrollbarSymbolSet) -> Self

Source

pub fn thumb_symbol(self, thumb_symbol: impl Into<String>) -> Self

Source

pub fn thumb_style<S: Into<Style>>(self, style: S) -> Self

Source

pub fn track_symbol<S: Into<String>>(self, track_symbol: Option<S>) -> Self

Source

pub fn track_style<S: Into<Style>>(self, style: S) -> Self

Source

pub fn begin_symbol<S: Into<String>>(self, begin_symbol: Option<S>) -> Self

Source

pub fn begin_style<S: Into<Style>>(self, style: S) -> Self

Source

pub fn end_symbol<S: Into<String>>(self, end_symbol: Option<S>) -> Self

Source

pub fn end_style<S: Into<Style>>(self, style: S) -> Self

Source

pub fn on_scroll<F>(self, handler: F) -> Self
where F: FnMut(usize) -> Option<Message> + 'static,

Source

pub fn layout(self, layout: Layout) -> Self

Source

pub fn style<S: Into<Style>>(self, style: S) -> Self

Source

pub fn build(self) -> Element<Message>

Trait Implementations§

Source§

impl<Message> Default for Scrollbar<Message>

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.