pub struct ResolvedScrollbarTheme {
pub track: Rgba,
pub thumb: Rgba,
pub thumb_hover: Rgba,
pub width: f32,
pub min_thumb_height: f32,
pub slider_width: f32,
pub overlay_mode: bool,
}Expand description
Scrollbar colors and geometry.
Fields§
§track: RgbaScrollbar track (gutter) color.
thumb: RgbaScrollbar thumb color.
thumb_hover: RgbaThumb color on hover.
width: f32Scrollbar width in logical pixels.
min_thumb_height: f32Minimum thumb height in logical pixels.
slider_width: f32Width of the slider rail within the scrollbar.
overlay_mode: boolWhether the scrollbar overlays content instead of taking layout space.
Trait Implementations§
Source§impl Clone for ResolvedScrollbarTheme
impl Clone for ResolvedScrollbarTheme
Source§fn clone(&self) -> ResolvedScrollbarTheme
fn clone(&self) -> ResolvedScrollbarTheme
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 ResolvedScrollbarTheme
impl Debug for ResolvedScrollbarTheme
Source§impl<'de> Deserialize<'de> for ResolvedScrollbarTheme
impl<'de> Deserialize<'de> for ResolvedScrollbarTheme
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 ResolvedScrollbarTheme
impl PartialEq for ResolvedScrollbarTheme
Source§impl Serialize for ResolvedScrollbarTheme
impl Serialize for ResolvedScrollbarTheme
impl StructuralPartialEq for ResolvedScrollbarTheme
Auto Trait Implementations§
impl Freeze for ResolvedScrollbarTheme
impl RefUnwindSafe for ResolvedScrollbarTheme
impl Send for ResolvedScrollbarTheme
impl Sync for ResolvedScrollbarTheme
impl Unpin for ResolvedScrollbarTheme
impl UnsafeUnpin for ResolvedScrollbarTheme
impl UnwindSafe for ResolvedScrollbarTheme
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