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() -> SwitchStyle
pub const fn track_on(self, color: Color) -> SwitchStyle
pub const fn track_off(self, color: Color) -> SwitchStyle
pub const fn track_disabled(self, color: Color) -> SwitchStyle
pub const fn thumb(self, color: Color) -> SwitchStyle
pub const fn thumb_on(self, color: Color) -> SwitchStyle
pub const fn thumb_disabled(self, color: Color) -> SwitchStyle
pub const fn border(self, color: Color) -> SwitchStyle
pub const fn border_on(self, color: Color) -> SwitchStyle
pub const fn text(self, color: Color) -> SwitchStyle
pub const fn font_size(self, size: f32) -> SwitchStyle
pub const fn width(self, width: f32) -> SwitchStyle
pub const fn height(self, height: f32) -> SwitchStyle
pub const fn thumb_size(self, size: f32) -> SwitchStyle
Trait Implementations§
Source§impl Clone for SwitchStyle
impl Clone for SwitchStyle
Source§fn clone(&self) -> SwitchStyle
fn clone(&self) -> SwitchStyle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SwitchStyle
Source§impl Debug for SwitchStyle
impl Debug for SwitchStyle
Source§impl Default for SwitchStyle
impl Default for SwitchStyle
Source§fn default() -> SwitchStyle
fn default() -> SwitchStyle
Returns the “default value” for a type. Read more
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