# WindowTransparencyLevel

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

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

```rust
struct WindowTransparencyLevel
```

A transparency level a window can be asked to render with.

The set of levels is closed: values are obtained from the associated
functions (`none`, `transparent`, ...).

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/window_transparency_level.rs#L9)

## Members

- [`none`](#function-none)
- [`transparent`](#function-transparent)
- [`blur`](#function-blur)
- [`acrylic_blur`](#function-acrylic_blur)
- [`mica`](#function-mica)

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

### none

```rust
const fn none() -> Self
```

The window background is black where the client area is transparent.

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

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

### transparent

```rust
const fn transparent() -> Self
```

The window background is transparent.

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

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

### blur

```rust
const fn blur() -> Self
```

The window background is a blur-behind where the client area is
transparent.

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

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

### acrylic_blur

```rust
const fn acrylic_blur() -> Self
```

The window background is a blur-behind with a high blur radius. This
level may fall back to blur, if the platform doesn't support acrylic.

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

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

### mica

```rust
const fn mica() -> Self
```

The window background is based on desktop wallpaper tint with a blur.
This will only work on Windows 11.

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

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- `ToString`
- [`ResourceKeyObject`](/docs/0.5.0/api/ferroui-base/controls/trait-resourcekeyobject/)
- [`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`
- [`MarkupTyped`](/docs/0.5.0/api/ferroui-base/metadata/trait-markuptyped/)
- [`ValueTypeRegistration`](/docs/0.5.0/api/ferroui-base/data/core/trait-valuetyperegistration/)
- `Clone`
- `Copy`
- `Debug`
- `StructuralPartialEq`
- `PartialEq`
- `Eq`
- `Hash`
- `Display`

## Availability

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