pub struct ComputedScrollbarStyle {
pub width: Option<LayoutWidth>,
pub thumb_color: Option<ColorU>,
pub track_color: Option<ColorU>,
}Expand description
The final, resolved style for a scrollbar, after considering both standard and -webkit- properties. This struct is intended for use by the layout engine.
Fields§
§width: Option<LayoutWidth>The width of the scrollbar. None signifies scrollbar-width: none.
thumb_color: Option<ColorU>The color of the scrollbar thumb. None means use UA default.
track_color: Option<ColorU>The color of the scrollbar track. None means use UA default.
Trait Implementations§
Source§impl Clone for ComputedScrollbarStyle
impl Clone for ComputedScrollbarStyle
Source§fn clone(&self) -> ComputedScrollbarStyle
fn clone(&self) -> ComputedScrollbarStyle
Returns a duplicate 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 Debug for ComputedScrollbarStyle
impl Debug for ComputedScrollbarStyle
Source§impl Default for ComputedScrollbarStyle
impl Default for ComputedScrollbarStyle
Source§impl PartialEq for ComputedScrollbarStyle
impl PartialEq for ComputedScrollbarStyle
impl StructuralPartialEq for ComputedScrollbarStyle
Auto Trait Implementations§
impl Freeze for ComputedScrollbarStyle
impl RefUnwindSafe for ComputedScrollbarStyle
impl Send for ComputedScrollbarStyle
impl Sync for ComputedScrollbarStyle
impl Unpin for ComputedScrollbarStyle
impl UnwindSafe for ComputedScrollbarStyle
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