pub struct ScrollStyle {
pub transition: Transition,
pub inset: f32,
pub width: f32,
pub border_radius: BorderRadius,
pub color: Color,
pub knob_color: Color,
}Expand description
The style of a scroll view.
Fields§
§transition: TransitionThe transition of the scrollbar.
inset: f32The inset of the scrollbar.
width: f32The width of the scrollbar.
border_radius: BorderRadiusThe radius of the scrollbar.
color: ColorThe color of the scrollbar.
knob_color: ColorThe color of the scrollbar knob.
Trait Implementations§
Source§impl Clone for ScrollStyle
impl Clone for ScrollStyle
Source§fn clone(&self) -> ScrollStyle
fn clone(&self) -> ScrollStyle
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Rebuild for ScrollStyle
impl Rebuild for ScrollStyle
Source§fn rebuild(&self, cx: &mut RebuildCx<'_, '_>, old: &ScrollStyle)
fn rebuild(&self, cx: &mut RebuildCx<'_, '_>, old: &ScrollStyle)
Rebuild the view.
Source§impl Style for ScrollStyle
impl Style for ScrollStyle
Source§fn default_style() -> StyleBuilder<ScrollStyle>
fn default_style() -> StyleBuilder<ScrollStyle>
The default style of the object.
Auto Trait Implementations§
impl Freeze for ScrollStyle
impl RefUnwindSafe for ScrollStyle
impl Send for ScrollStyle
impl Sync for ScrollStyle
impl Unpin for ScrollStyle
impl UnwindSafe for ScrollStyle
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