#[non_exhaustive]pub struct ResolvedSegmentedControlTheme {
pub background_color: Rgba,
pub active_background: Rgba,
pub active_text_color: Rgba,
pub segment_height: f32,
pub separator_width: f32,
pub disabled_opacity: f32,
pub hover_background: Option<Rgba>,
pub font: ResolvedFontSpec,
pub border: ResolvedBorderSpec,
}Expand description
Segmented control sizing (macOS-primary; KDE uses tab bar metrics as proxy).
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.background_color: RgbaSegmented control background color.
active_background: RgbaActive segment background.
active_text_color: RgbaActive segment text color.
segment_height: f32Segment height in logical pixels.
separator_width: f32Width of the separator between segments.
disabled_opacity: f32Opacity multiplier when disabled (0.0-1.0).
hover_background: Option<Rgba>Segment background on hover.
font: ResolvedFontSpecSegmented control font specification.
border: ResolvedBorderSpecSegmented control border specification.
Trait Implementations§
Source§impl Clone for ResolvedSegmentedControlTheme
impl Clone for ResolvedSegmentedControlTheme
Source§fn clone(&self) -> ResolvedSegmentedControlTheme
fn clone(&self) -> ResolvedSegmentedControlTheme
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<'de> Deserialize<'de> for ResolvedSegmentedControlTheme
impl<'de> Deserialize<'de> for ResolvedSegmentedControlTheme
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 ResolvedSegmentedControlTheme
impl PartialEq for ResolvedSegmentedControlTheme
Source§fn eq(&self, other: &ResolvedSegmentedControlTheme) -> bool
fn eq(&self, other: &ResolvedSegmentedControlTheme) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ResolvedSegmentedControlTheme
Auto Trait Implementations§
impl Freeze for ResolvedSegmentedControlTheme
impl RefUnwindSafe for ResolvedSegmentedControlTheme
impl Send for ResolvedSegmentedControlTheme
impl Sync for ResolvedSegmentedControlTheme
impl Unpin for ResolvedSegmentedControlTheme
impl UnsafeUnpin for ResolvedSegmentedControlTheme
impl UnwindSafe for ResolvedSegmentedControlTheme
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