pub struct SwitchStyle {Show 13 fields
pub track_on: Option<Color>,
pub track_off: Option<Color>,
pub track_disabled: Option<Color>,
pub thumb: Option<Color>,
pub thumb_on: Option<Color>,
pub thumb_disabled: Option<Color>,
pub border: Option<Color>,
pub border_on: Option<Color>,
pub text: Option<Color>,
pub font_size: Option<f32>,
pub width: Option<f32>,
pub height: Option<f32>,
pub thumb_size: Option<f32>,
}Fields§
§track_on: Option<Color>§track_off: Option<Color>§track_disabled: Option<Color>§thumb: Option<Color>§thumb_on: Option<Color>§thumb_disabled: Option<Color>§border: Option<Color>§border_on: Option<Color>§text: Option<Color>§font_size: Option<f32>§width: Option<f32>§height: Option<f32>§thumb_size: Option<f32>Implementations§
Source§impl SwitchStyle
impl SwitchStyle
pub const fn new() -> Self
pub const fn track_on(self, color: Color) -> Self
pub const fn track_off(self, color: Color) -> Self
pub const fn track_disabled(self, color: Color) -> Self
pub const fn thumb(self, color: Color) -> Self
pub const fn thumb_on(self, color: Color) -> Self
pub const fn thumb_disabled(self, color: Color) -> Self
pub const fn border(self, color: Color) -> Self
pub const fn border_on(self, color: Color) -> Self
pub const fn text(self, color: Color) -> Self
pub const fn font_size(self, size: f32) -> Self
pub const fn width(self, width: f32) -> Self
pub const fn height(self, height: f32) -> Self
pub const fn thumb_size(self, size: f32) -> Self
Trait Implementations§
Source§impl Clone for SwitchStyle
impl Clone for SwitchStyle
impl Copy for SwitchStyle
Source§impl Debug for SwitchStyle
impl Debug for SwitchStyle
Source§impl Default for SwitchStyle
impl Default for SwitchStyle
Source§impl PartialEq for SwitchStyle
impl PartialEq for SwitchStyle
impl StructuralPartialEq for SwitchStyle
Auto Trait Implementations§
impl Freeze for SwitchStyle
impl RefUnwindSafe for SwitchStyle
impl Send for SwitchStyle
impl Sync for SwitchStyle
impl Unpin for SwitchStyle
impl UnsafeUnpin for SwitchStyle
impl UnwindSafe for SwitchStyle
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