pub struct DynamicScheme { /* private fields */ }Implementations§
Source§impl DynamicScheme
impl DynamicScheme
pub const fn default_spec_version() -> SpecVersion
pub const fn default_platform() -> Platform
pub fn get_piecewise_value( source_color_hct: &Hct, hue_breakpoints: &[f64], hues: &[f64], ) -> f64
pub fn get_rotated_hue( source_color_hct: &Hct, hue_breakpoints: &[f64], rotations: &[f64], ) -> f64
pub fn new( source_color_hct: Hct, variant: Variant, is_dark: bool, platform: Platform, contrast_level: f64, spec_version: SpecVersion, primary_palette: TonalPalette, secondary_palette: TonalPalette, tertiary_palette: TonalPalette, neutral_palette: TonalPalette, neutral_variant_palette: TonalPalette, error_palette: TonalPalette, ) -> Self
pub fn source_color_argb(&self) -> u32
pub fn source_color_hct(&self) -> &Hct
pub fn variant(&self) -> &Variant
pub fn is_dark(&self) -> bool
pub fn platform(&self) -> &Platform
pub fn contrast_level(&self) -> f64
pub fn spec_version(&self) -> &SpecVersion
pub fn primary_palette(&self) -> &TonalPalette
pub fn secondary_palette(&self) -> &TonalPalette
pub fn tertiary_palette(&self) -> &TonalPalette
pub fn neutral_palette(&self) -> &TonalPalette
pub fn neutral_variant_palette(&self) -> &TonalPalette
pub fn error_palette(&self) -> &TonalPalette
pub fn get_hct<'a>(&'a self, dynamic_color: &'a DynamicColor<'a>) -> Hct
pub fn get_argb<'a>(&'a self, dynamic_color: &'a DynamicColor<'a>) -> u32
pub fn primary_palette_key_color(&self) -> u32
pub fn secondary_palette_key_color(&self) -> u32
pub fn tertiary_palette_key_color(&self) -> u32
pub fn neutral_palette_key_color(&self) -> u32
pub fn neutral_variant_palette_key_color(&self) -> u32
pub fn error_palette_key_color(&self) -> u32
pub fn background(&self) -> u32
pub fn on_background(&self) -> u32
pub fn surface(&self) -> u32
pub fn surface_dim(&self) -> u32
pub fn surface_bright(&self) -> u32
pub fn surface_container_lowest(&self) -> u32
pub fn surface_container_low(&self) -> u32
pub fn surface_container(&self) -> u32
pub fn surface_container_high(&self) -> u32
pub fn surface_container_highest(&self) -> u32
pub fn on_surface(&self) -> u32
pub fn surface_variant(&self) -> u32
pub fn on_surface_variant(&self) -> u32
pub fn inverse_surface(&self) -> u32
pub fn inverse_on_surface(&self) -> u32
pub fn outline(&self) -> u32
pub fn outline_variant(&self) -> u32
pub fn shadow(&self) -> u32
pub fn scrim(&self) -> u32
pub fn surface_tint(&self) -> u32
pub fn primary(&self) -> u32
pub fn primary_dim(&self) -> u32
pub fn on_primary(&self) -> u32
pub fn primary_container(&self) -> u32
pub fn on_primary_container(&self) -> u32
pub fn inverse_primary(&self) -> u32
pub fn primary_fixed(&self) -> u32
pub fn primary_fixed_dim(&self) -> u32
pub fn on_primary_fixed(&self) -> u32
pub fn on_primary_fixed_variant(&self) -> u32
pub fn secondary(&self) -> u32
pub fn secondary_dim(&self) -> u32
pub fn on_secondary(&self) -> u32
pub fn secondary_container(&self) -> u32
pub fn on_secondary_container(&self) -> u32
pub fn secondary_fixed(&self) -> u32
pub fn secondary_fixed_dim(&self) -> u32
pub fn on_secondary_fixed(&self) -> u32
pub fn on_secondary_fixed_variant(&self) -> u32
pub fn tertiary(&self) -> u32
pub fn tertiary_dim(&self) -> u32
pub fn on_tertiary(&self) -> u32
pub fn tertiary_container(&self) -> u32
pub fn on_tertiary_container(&self) -> u32
pub fn tertiary_fixed(&self) -> u32
pub fn tertiary_fixed_dim(&self) -> u32
pub fn on_tertiary_fixed(&self) -> u32
pub fn on_tertiary_fixed_variant(&self) -> u32
pub fn error(&self) -> u32
pub fn error_dim(&self) -> u32
pub fn on_error(&self) -> u32
pub fn error_container(&self) -> u32
pub fn on_error_container(&self) -> u32
pub fn control_activated(&self) -> u32
pub fn control_normal(&self) -> u32
pub fn control_highlight(&self) -> u32
pub fn text_primary_inverse(&self) -> u32
pub fn text_secondary_and_tertiary_inverse(&self) -> u32
pub fn text_primary_inverse_disable_only(&self) -> u32
pub fn text_secondary_and_tertiary_inverse_disabled(&self) -> u32
pub fn text_hint_inverse(&self) -> u32
Trait Implementations§
Source§impl Clone for DynamicScheme
impl Clone for DynamicScheme
Source§fn clone(&self) -> DynamicScheme
fn clone(&self) -> DynamicScheme
Returns a duplicate of the value. Read more
1.0.0 · 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 DynamicScheme
impl Debug for DynamicScheme
Source§impl Display for DynamicScheme
impl Display for DynamicScheme
Source§impl From<&DynamicScheme> for DynamicSchemeBuilder
impl From<&DynamicScheme> for DynamicSchemeBuilder
Source§fn from(value: &DynamicScheme) -> Self
fn from(value: &DynamicScheme) -> Self
Converts to this type from the input type.
Source§impl From<DynamicScheme> for DynamicSchemeBuilder
impl From<DynamicScheme> for DynamicSchemeBuilder
Source§fn from(value: DynamicScheme) -> Self
fn from(value: DynamicScheme) -> Self
Converts to this type from the input type.
Source§impl Hash for DynamicScheme
impl Hash for DynamicScheme
Source§impl PartialEq for DynamicScheme
impl PartialEq for DynamicScheme
impl Eq for DynamicScheme
impl StructuralPartialEq for DynamicScheme
Auto Trait Implementations§
impl !Freeze for DynamicScheme
impl !RefUnwindSafe for DynamicScheme
impl Send for DynamicScheme
impl !Sync for DynamicScheme
impl Unpin for DynamicScheme
impl UnwindSafe for DynamicScheme
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