pub struct UiStyle {Show 13 fields
pub button: ButtonStyle,
pub text_field: TextFieldStyle,
pub toggle_button: ToggleButtonStyle,
pub alert: AlertStyle,
pub dialog: DialogStyle,
pub background: Color,
pub title_text: TextFormat,
pub body_text: TextFormat,
pub tooltip: TooltipStyle,
pub icon_button: IconButtonStyle,
pub checkbox: CheckboxStyle,
pub toggle_icon_button: ToggleIconButtonStyle,
pub menu: MenuBarStyle,
}
Fields§
§text_field: TextFieldStyle
§alert: AlertStyle
§dialog: DialogStyle
§background: Color
§title_text: TextFormat
§body_text: TextFormat
§tooltip: TooltipStyle
§checkbox: CheckboxStyle
Trait Implementations§
Source§impl<'de> Deserialize<'de> for UiStyle
impl<'de> Deserialize<'de> for UiStyle
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
impl StructuralPartialEq for UiStyle
Auto Trait Implementations§
impl Freeze for UiStyle
impl RefUnwindSafe for UiStyle
impl Send for UiStyle
impl Sync for UiStyle
impl Unpin for UiStyle
impl UnwindSafe for UiStyle
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.