pub struct MaterialDynamicColorOptions {
pub dark: bool,
pub contrast_level: f64,
pub style: MaterialPaletteStyle,
}Expand description
Inputs for a generated dynamic scheme. Contrast is in [-1, 1]: zero is standard, 0.5 is medium, and 1 is high contrast. NaN/infinite/out-of-range values are rejected.
Fields§
§dark: bool§contrast_level: f64§style: MaterialPaletteStyleTrait Implementations§
Source§impl Clone for MaterialDynamicColorOptions
impl Clone for MaterialDynamicColorOptions
impl Copy for MaterialDynamicColorOptions
Source§impl Debug for MaterialDynamicColorOptions
impl Debug for MaterialDynamicColorOptions
impl StructuralPartialEq for MaterialDynamicColorOptions
Auto Trait Implementations§
impl Freeze for MaterialDynamicColorOptions
impl RefUnwindSafe for MaterialDynamicColorOptions
impl Send for MaterialDynamicColorOptions
impl Sync for MaterialDynamicColorOptions
impl Unpin for MaterialDynamicColorOptions
impl UnsafeUnpin for MaterialDynamicColorOptions
impl UnwindSafe for MaterialDynamicColorOptions
Blanket Implementations§
Source§impl<T> AnyValue for Twhere
T: PartialEq + 'static,
impl<T> AnyValue for Twhere
T: PartialEq + 'static,
fn any_value_as_any(&self) -> &(dyn Any + 'static)
fn any_value_eq(&self, other: &(dyn AnyValue + 'static)) -> bool
fn any_value_type_name(&self) -> &'static str
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more