pub struct ScrollBar { /* private fields */ }Implementations§
Source§impl ScrollBar
impl ScrollBar
Sourcepub fn default_renderer() -> Callback<ScrollBarContext, Element>
pub fn default_renderer() -> Callback<ScrollBarContext, Element>
Creates the default scrollbar renderer.
Sourcepub fn new(context: ScrollBarContext) -> Self
pub fn new(context: ScrollBarContext) -> Self
Creates a built-in scrollbar from renderer context data.
Sourcepub fn theme(self, theme: ScrollBarThemePartial) -> Self
pub fn theme(self, theme: ScrollBarThemePartial) -> Self
Overrides built-in scrollbar theme values for this instance.
Trait Implementations§
Source§impl ComponentOwned for ScrollBar
impl ComponentOwned for ScrollBar
fn render(self) -> impl IntoElement
fn render_key(&self) -> DiffKey
Source§impl ScrollBarThemePartialExt for ScrollBar
impl ScrollBarThemePartialExt for ScrollBar
fn background(self, background: impl Into<Color>) -> Self
fn thumb_background(self, thumb_background: impl Into<Color>) -> Self
fn hover_thumb_background( self, hover_thumb_background: impl Into<Color>, ) -> Self
fn active_thumb_background( self, active_thumb_background: impl Into<Color>, ) -> Self
fn thumb_cross_size(self, thumb_cross_size: f32) -> Self
fn expanded_thumb_cross_size(self, expanded_thumb_cross_size: f32) -> Self
fn opacity(self, opacity: f32) -> Self
fn expanded_opacity(self, expanded_opacity: f32) -> Self
fn cross_gap(self, cross_gap: f32) -> Self
fn expanded_cross_gap(self, expanded_cross_gap: f32) -> Self
impl StructuralPartialEq for ScrollBar
Auto Trait Implementations§
impl !RefUnwindSafe for ScrollBar
impl !Send for ScrollBar
impl !Sync for ScrollBar
impl !UnwindSafe for ScrollBar
impl Forget for ScrollBar
impl Freeze for ScrollBar
impl Unpin for ScrollBar
impl UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Component for T
impl<T> Component for T
fn render(&self) -> impl IntoElement
fn render_key(&self) -> DiffKey
Source§impl<T> ComponentKey for Twhere
T: Component,
impl<T> ComponentKey for Twhere
T: Component,
fn default_key(&self) -> DiffKey
Source§impl<T> ComponentProps for T
impl<T> ComponentProps for T
fn changed(&self, other: &(dyn ComponentProps + 'static)) -> bool
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more