ExperimentalAcrylicMaterial
struct · ferroui-base · v0.5.0
struct ExperimentalAcrylicMaterial
An experimental acrylic-like material.
Members
TYPEto_reftint_color_propertybackground_source_propertytint_opacity_propertymaterial_opacity_propertyplatform_transparency_compensation_level_propertyfallback_color_propertyconstructnewinvalidatedbackground_sourceset_background_sourcetint_colorset_tint_colortint_opacityset_tint_opacityfallback_colorset_fallback_colormaterial_opacityset_material_opacityplatform_transparency_compensation_levelset_platform_transparency_compensation_levelaffects_renderraise_invalidatedto_immutable
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<ExperimentalAcrylicMaterial>
Returns a strong reference to this object.
tint_color_property
fn tint_color_property() -> &'static StyledProperty<Color>
Defines the TintColor property.
background_source_property
fn background_source_property() -> &'static StyledProperty<AcrylicBackgroundSource>
Defines the BackgroundSource property.
tint_opacity_property
fn tint_opacity_property() -> &'static StyledProperty<f64>
Defines the TintOpacity property.
material_opacity_property
fn material_opacity_property() -> &'static StyledProperty<f64>
Defines the MaterialOpacity property.
platform_transparency_compensation_level_property
fn platform_transparency_compensation_level_property() -> &'static StyledProperty<f64>
Defines the PlatformTransparencyCompensationLevel property.
fallback_color_property
fn fallback_color_property() -> &'static StyledProperty<Color>
Defines the FallbackColor property.
construct
fn construct() -> Self
Creates the class data.
new
fn new() -> Ref<Self>
invalidated
fn invalidated(self: &Self, handler: impl Fn() -> () + 'static) -> Subscription
Raised when the material changes. Dropping the returned guard removes
the handler; Subscription::detach keeps it for the life of the
material.
background_source
fn background_source(self: &Self) -> AcrylicBackgroundSource
The background source mode.
set_background_source
fn set_background_source(self: &Self, value: AcrylicBackgroundSource)
tint_color
fn tint_color(self: &Self) -> Color
The tint color of the material.
set_tint_color
fn set_tint_color(self: &Self, value: Color)
tint_opacity
fn tint_opacity(self: &Self) -> f64
The tint opacity of the material.
set_tint_opacity
fn set_tint_opacity(self: &Self, value: f64)
fallback_color
fn fallback_color(self: &Self) -> Color
The fallback color if acrylic is unavailable.
set_fallback_color
fn set_fallback_color(self: &Self, value: Color)
material_opacity
fn material_opacity(self: &Self) -> f64
The opacity of the material layer.
set_material_opacity
fn set_material_opacity(self: &Self, value: f64)
platform_transparency_compensation_level
fn platform_transparency_compensation_level(self: &Self) -> f64
How much of the platform's own transparency is compensated for.
set_platform_transparency_compensation_level
fn set_platform_transparency_compensation_level(self: &Self, value: f64)
affects_render
fn affects_render<T: ObjectType + Upcast<ExperimentalAcrylicMaterial>>(properties: &[&'static FerroProperty])
Marks a property on a class deriving from this one as affecting the
material's visual appearance: a change raises
invalidated.
raise_invalidated
fn raise_invalidated(self: &Self)
Raises the invalidated notification.
to_immutable
fn to_immutable(self: &Self) -> Rc<dyn IExperimentalAcrylicMaterial>
Creates an immutable clone of the material.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeFerroObjectImplExtClassDefaultsBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyErasedDestructorIntoEitherDerefUpcast<T>Upcast<ExperimentalAcrylicMaterial>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleFerroObjectImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.