pub struct Scrollbar {
pub mode: ScrollbarMode,
pub width: Option<f32>,
pub color: Option<Color>,
pub active_color: Option<Color>,
}Expand description
A scrolling node’s bars, per node. Every field’s default is the stock
bar — the theme’s scrollbar / scrollbar_active colours, 4 px at
rest and 6 px under the pointer, always drawn while the content
overflows — so a binding that sets none of the four rows gets exactly
what it always had. The bars are overlays and take no layout space
whatever their width; the grabbable track is at least as wide as the
active thumb plus its inset.
Fields§
§mode: ScrollbarModeWhether the bars are drawn at all, and when (see ScrollbarMode).
width: Option<f32>The thumb’s width at rest, logical px; under the pointer or dragged
it is 2 px wider. None is the stock 4.
color: Option<Color>The thumb at rest; None is theme.scrollbar.
active_color: Option<Color>The thumb under the pointer or dragged; None is
theme.scrollbar_active.
Implementations§
Trait Implementations§
impl Copy for Scrollbar
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