pub struct ImmutableExperimentalAcrylicMaterial { /* private fields */ }Expand description
An immutable acrylic-like material.
Implementations§
Source§impl ImmutableExperimentalAcrylicMaterial
impl ImmutableExperimentalAcrylicMaterial
Sourcepub fn new(brush: &dyn IExperimentalAcrylicMaterial) -> Self
pub fn new(brush: &dyn IExperimentalAcrylicMaterial) -> Self
Creates an immutable copy of brush.
Sourcepub fn background_source(&self) -> AcrylicBackgroundSource
pub fn background_source(&self) -> AcrylicBackgroundSource
The background source mode.
Sourcepub fn tint_color(&self) -> Color
pub fn tint_color(&self) -> Color
The tint color of the material.
Sourcepub fn material_color(&self) -> Color
pub fn material_color(&self) -> Color
The effective material color.
Sourcepub fn tint_opacity(&self) -> f64
pub fn tint_opacity(&self) -> f64
The tint opacity of the material.
Sourcepub fn fallback_color(&self) -> Color
pub fn fallback_color(&self) -> Color
The fallback color if acrylic is unavailable.
Sourcepub fn equals(&self, other: &ImmutableExperimentalAcrylicMaterial) -> bool
pub fn equals(&self, other: &ImmutableExperimentalAcrylicMaterial) -> bool
Whether the material has the same parameters as other.
Sourcepub fn get_effective_tint_color(&self) -> Color
pub fn get_effective_tint_color(&self) -> Color
The tint color the material is drawn with.
Trait Implementations§
impl Copy for ImmutableExperimentalAcrylicMaterial
Source§impl IExperimentalAcrylicMaterial for ImmutableExperimentalAcrylicMaterial
impl IExperimentalAcrylicMaterial for ImmutableExperimentalAcrylicMaterial
Source§fn background_source(&self) -> AcrylicBackgroundSource
fn background_source(&self) -> AcrylicBackgroundSource
The background source mode.
Source§fn tint_color(&self) -> Color
fn tint_color(&self) -> Color
The tint color of the material.
Source§fn tint_opacity(&self) -> f64
fn tint_opacity(&self) -> f64
The tint opacity of the material.
Source§fn material_color(&self) -> Color
fn material_color(&self) -> Color
The effective material color.
Source§fn fallback_color(&self) -> Color
fn fallback_color(&self) -> Color
The fallback color if acrylic is unavailable.
Source§fn as_object(&self) -> Option<&FerroObject>
fn as_object(&self) -> Option<&FerroObject>
The object behind the material when it is mutable.
Source§fn as_mutable_material(
&self,
) -> Option<&dyn IMutableExperimentalAcrylicMaterial>
fn as_mutable_material( &self, ) -> Option<&dyn IMutableExperimentalAcrylicMaterial>
The material viewed as
IMutableExperimentalAcrylicMaterial, when
it is one.Auto Trait Implementations§
impl Freeze for ImmutableExperimentalAcrylicMaterial
impl RefUnwindSafe for ImmutableExperimentalAcrylicMaterial
impl Send for ImmutableExperimentalAcrylicMaterial
impl Sync for ImmutableExperimentalAcrylicMaterial
impl Unpin for ImmutableExperimentalAcrylicMaterial
impl UnsafeUnpin for ImmutableExperimentalAcrylicMaterial
impl UnwindSafe for ImmutableExperimentalAcrylicMaterial
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