pub struct AcrylicPlatformCompensationLevels { /* private fields */ }Expand description
The opacity compensation a platform needs for each transparency level in order for acrylic materials to look the way they are defined.
Implementations§
Source§impl AcrylicPlatformCompensationLevels
impl AcrylicPlatformCompensationLevels
Sourcepub const fn new(transparent: f64, blurred: f64, acrylic: f64) -> Self
pub const fn new(transparent: f64, blurred: f64, acrylic: f64) -> Self
Creates the compensation levels.
Sourcepub const fn transparent_level(&self) -> f64
pub const fn transparent_level(&self) -> f64
The compensation for the transparent level.
Sourcepub const fn blur_level(&self) -> f64
pub const fn blur_level(&self) -> f64
The compensation for the blur level.
Sourcepub const fn acrylic_blur_level(&self) -> f64
pub const fn acrylic_blur_level(&self) -> f64
The compensation for the acrylic blur level.
Trait Implementations§
impl Copy for AcrylicPlatformCompensationLevels
Source§impl MarkupTyped for AcrylicPlatformCompensationLevels
impl MarkupTyped for AcrylicPlatformCompensationLevels
Source§const MARKUP: &'static MarkupType
const MARKUP: &'static MarkupType
The markup metadata of the type.
impl StructuralPartialEq for AcrylicPlatformCompensationLevels
Auto Trait Implementations§
impl Freeze for AcrylicPlatformCompensationLevels
impl RefUnwindSafe for AcrylicPlatformCompensationLevels
impl Send for AcrylicPlatformCompensationLevels
impl Sync for AcrylicPlatformCompensationLevels
impl Unpin for AcrylicPlatformCompensationLevels
impl UnsafeUnpin for AcrylicPlatformCompensationLevels
impl UnwindSafe for AcrylicPlatformCompensationLevels
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
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