# AcrylicPlatformCompensationLevels

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls/struct-acrylicplatformcompensationlevels/

**struct** · [`ferroui-controls`](/docs/0.5.0/api/ferroui-controls/) · v0.5.0

```rust
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](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/acrylic_platform_compensation_levels.rs#L4)

## Members

- [`new`](#function-new)
- [`transparent_level`](#function-transparent_level)
- [`blur_level`](#function-blur_level)
- [`acrylic_blur_level`](#function-acrylic_blur_level)

<a id="function-new"></a>

### new

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

Creates the compensation levels.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/acrylic_platform_compensation_levels.rs#L12)

<a id="function-transparent_level"></a>

### transparent_level

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

The compensation for the transparent level.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/acrylic_platform_compensation_levels.rs#L17)

<a id="function-blur_level"></a>

### blur_level

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

The compensation for the blur level.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/acrylic_platform_compensation_levels.rs#L22)

<a id="function-acrylic_blur_level"></a>

### acrylic_blur_level

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

The compensation for the acrylic blur level.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/acrylic_platform_compensation_levels.rs#L27)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- [`PropertyValue`](/docs/0.5.0/api/ferroui-base/trait-propertyvalue/)
- [`AnyValue`](/docs/0.5.0/api/ferroui-base/trait-anyvalue/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- `Clone`
- `Copy`
- `Debug`
- `Default`
- `StructuralPartialEq`
- `PartialEq`
- [`MarkupTyped`](/docs/0.5.0/api/ferroui-base/metadata/trait-markuptyped/)
- [`ValueTypeRegistration`](/docs/0.5.0/api/ferroui-base/data/core/trait-valuetyperegistration/)

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
