#[non_exhaustive]pub struct ResolvedScrollbarTheme {
pub track_color: Rgba,
pub thumb_color: Rgba,
pub thumb_hover_color: Rgba,
pub groove_width: f32,
pub min_thumb_length: f32,
pub thumb_width: f32,
pub overlay_mode: bool,
pub thumb_active_color: Option<Rgba>,
}Expand description
Scrollbar colors and geometry.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.track_color: RgbaScrollbar track (gutter) color.
thumb_color: RgbaScrollbar thumb color.
thumb_hover_color: RgbaThumb color on hover.
groove_width: f32Scrollbar groove width in logical pixels.
min_thumb_length: f32Minimum thumb length in logical pixels.
thumb_width: f32Width of the thumb rail within the scrollbar.
overlay_mode: boolWhether the scrollbar overlays content instead of taking layout space.
thumb_active_color: Option<Rgba>Thumb color when pressed/dragging.
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