pub struct StrokeTokens {Show 13 fields
pub hairline_width: f32,
pub thin_width: f32,
pub medium_width: f32,
pub strong_width: f32,
pub divider: StrokeStyle,
pub surface: StrokeStyle,
pub surface_strong: StrokeStyle,
pub control: StrokeStyle,
pub control_hover: StrokeStyle,
pub focus: StrokeStyle,
pub selected: StrokeStyle,
pub invalid: StrokeStyle,
pub warning: StrokeStyle,
}Fields§
§hairline_width: f32§thin_width: f32§medium_width: f32§strong_width: f32§divider: StrokeStyle§surface: StrokeStyle§surface_strong: StrokeStyle§control: StrokeStyle§control_hover: StrokeStyle§focus: StrokeStyle§selected: StrokeStyle§invalid: StrokeStyle§warning: StrokeStyleImplementations§
Source§impl StrokeTokens
impl StrokeTokens
pub const fn dark(colors: &ColorTokens) -> Self
Trait Implementations§
Source§impl Clone for StrokeTokens
impl Clone for StrokeTokens
Source§fn clone(&self) -> StrokeTokens
fn clone(&self) -> StrokeTokens
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 moreSource§impl Debug for StrokeTokens
impl Debug for StrokeTokens
Source§impl PartialEq for StrokeTokens
impl PartialEq for StrokeTokens
Source§fn eq(&self, other: &StrokeTokens) -> bool
fn eq(&self, other: &StrokeTokens) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for StrokeTokens
impl StructuralPartialEq for StrokeTokens
Auto Trait Implementations§
impl Freeze for StrokeTokens
impl RefUnwindSafe for StrokeTokens
impl Send for StrokeTokens
impl Sync for StrokeTokens
impl Unpin for StrokeTokens
impl UnsafeUnpin for StrokeTokens
impl UnwindSafe for StrokeTokens
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.