pub struct ResolvedSwitchTheme {
pub checked_bg: Rgba,
pub unchecked_bg: Rgba,
pub thumb_bg: Rgba,
pub track_width: f32,
pub track_height: f32,
pub thumb_size: f32,
pub track_radius: f32,
}Expand description
Toggle switch track, thumb, and geometry.
Fields§
§checked_bg: RgbaTrack background when the switch is on.
unchecked_bg: RgbaTrack background when the switch is off.
thumb_bg: RgbaThumb (knob) color.
track_width: f32Track width in logical pixels.
track_height: f32Track height in logical pixels.
thumb_size: f32Thumb diameter in logical pixels.
track_radius: f32Track corner radius in logical pixels.
Trait Implementations§
Source§impl Clone for ResolvedSwitchTheme
impl Clone for ResolvedSwitchTheme
Source§fn clone(&self) -> ResolvedSwitchTheme
fn clone(&self) -> ResolvedSwitchTheme
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 ResolvedSwitchTheme
impl Debug for ResolvedSwitchTheme
Source§impl PartialEq for ResolvedSwitchTheme
impl PartialEq for ResolvedSwitchTheme
Source§impl Serialize for ResolvedSwitchTheme
impl Serialize for ResolvedSwitchTheme
impl StructuralPartialEq for ResolvedSwitchTheme
Auto Trait Implementations§
impl Freeze for ResolvedSwitchTheme
impl RefUnwindSafe for ResolvedSwitchTheme
impl Send for ResolvedSwitchTheme
impl Sync for ResolvedSwitchTheme
impl Unpin for ResolvedSwitchTheme
impl UnsafeUnpin for ResolvedSwitchTheme
impl UnwindSafe for ResolvedSwitchTheme
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