FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ImmutableExperimentalAcrylicMaterial

    struct · ferroui-base · v0.5.0

    struct ImmutableExperimentalAcrylicMaterial
    

    An immutable acrylic-like material.

    View source

    Members

    new

    fn new(brush: &dyn IExperimentalAcrylicMaterial) -> Self
    

    Creates an immutable copy of brush.

    Source

    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

    material_color

    fn material_color(self: &Self) -> Color
    

    The effective material color.

    Source

    tint_opacity

    fn tint_opacity(self: &Self) -> f64
    

    The tint opacity of the material.

    Source

    fallback_color

    fn fallback_color(self: &Self) -> Color
    

    The fallback color if acrylic is unavailable.

    Source

    equals

    fn equals(self: &Self, other: &ImmutableExperimentalAcrylicMaterial) -> bool
    

    Whether the material has the same parameters as other.

    Source

    get_effective_tint_color

    fn get_effective_tint_color(self: &Self) -> Color
    

    The tint color the material is drawn with.

    Source

    Trait implementations

    Availability

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