FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    IExperimentalAcrylicMaterial

    trait · ferroui-base · v0.5.0

    trait IExperimentalAcrylicMaterial: 'static
    

    Experimental interface for producing acrylic-like materials.

    Implemented by ImmutableExperimentalAcrylicMaterial and, through an adapter, by handles of ExperimentalAcrylicMaterial.

    View source

    Members

    background_source

    fn background_source(self: &Self) -> AcrylicBackgroundSource
    

    The background source mode.

    Source

    tint_color

    fn tint_color(self: &Self) -> Color
    

    The tint color of the material.

    Source

    tint_opacity

    fn tint_opacity(self: &Self) -> f64
    

    The tint opacity of the material.

    Source

    material_color

    fn material_color(self: &Self) -> Color
    

    The effective material color.

    Source

    fallback_color

    fn fallback_color(self: &Self) -> Color
    

    The fallback color if acrylic is unavailable.

    Source

    as_any

    fn as_any(self: &Self) -> &dyn Any
    

    The implementing value, for downcasts to the immutable material.

    Source

    as_object

    fn as_object(self: &Self) -> Option<&FerroObject>
    

    The object behind the material when it is mutable.

    Source

    as_mutable_material

    fn as_mutable_material(self: &Self) -> Option<&dyn IMutableExperimentalAcrylicMaterial>
    

    The material viewed as IMutableExperimentalAcrylicMaterial, when it is one.

    Source

    Trait implementations

    Availability

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