FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ExperimentalAcrylicMaterial

    struct · ferroui-base · v0.5.0

    struct ExperimentalAcrylicMaterial
    

    An experimental acrylic-like material.

    View source

    Members

    TYPE

    const TYPE: &'static $crate::TypeInfo
    

    The runtime type of this class.

    Source

    to_ref

    fn to_ref(self: &Self) -> $crate::Ref<ExperimentalAcrylicMaterial>
    

    Returns a strong reference to this object.

    Source

    tint_color_property

    fn tint_color_property() -> &'static StyledProperty<Color>
    

    Defines the TintColor property.

    Source

    background_source_property

    fn background_source_property() -> &'static StyledProperty<AcrylicBackgroundSource>
    

    Defines the BackgroundSource property.

    Source

    tint_opacity_property

    fn tint_opacity_property() -> &'static StyledProperty<f64>
    

    Defines the TintOpacity property.

    Source

    material_opacity_property

    fn material_opacity_property() -> &'static StyledProperty<f64>
    

    Defines the MaterialOpacity property.

    Source

    platform_transparency_compensation_level_property

    fn platform_transparency_compensation_level_property() -> &'static StyledProperty<f64>
    

    Defines the PlatformTransparencyCompensationLevel property.

    Source

    fallback_color_property

    fn fallback_color_property() -> &'static StyledProperty<Color>
    

    Defines the FallbackColor property.

    Source

    construct

    fn construct() -> Self
    

    Creates the class data.

    Source

    new

    fn new() -> Ref<Self>
    

    Source

    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.

    Source

    background_source

    fn background_source(self: &Self) -> AcrylicBackgroundSource
    

    The background source mode.

    Source

    set_background_source

    fn set_background_source(self: &Self, value: AcrylicBackgroundSource)
    

    Source

    tint_color

    fn tint_color(self: &Self) -> Color
    

    The tint color of the material.

    Source

    set_tint_color

    fn set_tint_color(self: &Self, value: Color)
    

    Source

    tint_opacity

    fn tint_opacity(self: &Self) -> f64
    

    The tint opacity of the material.

    Source

    set_tint_opacity

    fn set_tint_opacity(self: &Self, value: f64)
    

    Source

    fallback_color

    fn fallback_color(self: &Self) -> Color
    

    The fallback color if acrylic is unavailable.

    Source

    set_fallback_color

    fn set_fallback_color(self: &Self, value: Color)
    

    Source

    material_opacity

    fn material_opacity(self: &Self) -> f64
    

    The opacity of the material layer.

    Source

    set_material_opacity

    fn set_material_opacity(self: &Self, value: f64)
    

    Source

    platform_transparency_compensation_level

    fn platform_transparency_compensation_level(self: &Self) -> f64
    

    How much of the platform's own transparency is compensated for.

    Source

    set_platform_transparency_compensation_level

    fn set_platform_transparency_compensation_level(self: &Self, value: f64)
    

    Source

    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.

    Source

    raise_invalidated

    fn raise_invalidated(self: &Self)
    

    Raises the invalidated notification.

    Source

    to_immutable

    fn to_immutable(self: &Self) -> Rc<dyn IExperimentalAcrylicMaterial>
    

    Creates an immutable clone of the material.

    Source

    Trait implementations

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.