pub struct ScrollbarTheme {
pub track: Option<Rgba>,
pub thumb: Option<Rgba>,
pub thumb_hover: Option<Rgba>,
pub width: Option<f32>,
pub min_thumb_height: Option<f32>,
pub slider_width: Option<f32>,
pub overlay_mode: Option<bool>,
}Expand description
Scrollbar colors and geometry.
Fields§
§track: Option<Rgba>Scrollbar track (gutter) color.
thumb: Option<Rgba>Scrollbar thumb color.
thumb_hover: Option<Rgba>Thumb color on hover.
width: Option<f32>Scrollbar width in logical pixels.
min_thumb_height: Option<f32>Minimum thumb height in logical pixels.
slider_width: Option<f32>Width of the slider rail within the scrollbar.
overlay_mode: Option<bool>Whether the scrollbar overlays content instead of taking layout space.
Implementations§
Source§impl ScrollbarTheme
impl ScrollbarTheme
Trait Implementations§
Source§impl Clone for ScrollbarTheme
impl Clone for ScrollbarTheme
Source§fn clone(&self) -> ScrollbarTheme
fn clone(&self) -> ScrollbarTheme
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 ScrollbarTheme
impl Debug for ScrollbarTheme
Source§impl Default for ScrollbarTheme
impl Default for ScrollbarTheme
Source§fn default() -> ScrollbarTheme
fn default() -> ScrollbarTheme
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ScrollbarThemewhere
ScrollbarTheme: Default,
impl<'de> Deserialize<'de> for ScrollbarThemewhere
ScrollbarTheme: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ScrollbarTheme
impl PartialEq for ScrollbarTheme
Source§impl Serialize for ScrollbarTheme
impl Serialize for ScrollbarTheme
impl StructuralPartialEq for ScrollbarTheme
Auto Trait Implementations§
impl Freeze for ScrollbarTheme
impl RefUnwindSafe for ScrollbarTheme
impl Send for ScrollbarTheme
impl Sync for ScrollbarTheme
impl Unpin for ScrollbarTheme
impl UnsafeUnpin for ScrollbarTheme
impl UnwindSafe for ScrollbarTheme
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