FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    AcrylicPlatformCompensationLevels

    struct · ferroui-controls · v0.5.0

    struct AcrylicPlatformCompensationLevels
    

    The opacity compensation a platform needs for each transparency level in order for acrylic materials to look the way they are defined.

    View source

    Members

    new

    const fn new(transparent: f64, blurred: f64, acrylic: f64) -> Self
    

    Creates the compensation levels.

    Source

    transparent_level

    const fn transparent_level(self: &Self) -> f64
    

    The compensation for the transparent level.

    Source

    blur_level

    const fn blur_level(self: &Self) -> f64
    

    The compensation for the blur level.

    Source

    acrylic_blur_level

    const fn acrylic_blur_level(self: &Self) -> f64
    

    The compensation for the acrylic blur level.

    Source

    Trait implementations

    Availability

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