pub struct ScrollBar {
pub clicking_scrollbar: State<Option<(Axis, f64)>>,
pub axis: Axis,
pub offset: f32,
pub size: Size,
pub thumb: ScrollThumb,
/* private fields */
}Fields§
§clicking_scrollbar: State<Option<(Axis, f64)>>§axis: Axis§offset: f32§size: Size§thumb: ScrollThumbTrait 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 size(self, size: impl Into<f32>) -> Self
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Component for T
impl<T> Component for T
fn render(&self) -> impl IntoElement
fn render_key(&self) -> DiffKey
§impl<T> ComponentKey for Twhere
T: Component,
impl<T> ComponentKey for Twhere
T: Component,
fn default_key(&self) -> DiffKey
§impl<T> ComponentProps for T
impl<T> ComponentProps for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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