# MicaController

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/rendering/composition/system_backdrops/struct-micacontroller/

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

```rust
struct MicaController
```

The Mica controller (WinUI `Microsoft.UI.Composition.SystemBackdrops.MicaController`).

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/system_backdrops.rs#L698)

## Members

- [`new`](#function-new)
- [`is_supported`](#function-is_supported)
- [`kind`](#function-kind)
- [`set_kind`](#function-set_kind)
- [`controller`](#function-controller)

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

### new

```rust
fn new() -> MicaController
```

A controller of Mica of kind `Base`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/system_backdrops.rs#L716)

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

### is_supported

```rust
fn is_supported() -> bool
```

`IsSupported`: whether the platform can draw Mica (Windows 11 and
macOS); elsewhere a controller shows the fallback colour.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/system_backdrops.rs#L722)

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

### kind

```rust
fn kind(self: &Self) -> MicaKind
```

`Kind`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/system_backdrops.rs#L727)

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

### set_kind

```rust
fn set_kind(self: &Self, kind: MicaKind)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/system_backdrops.rs#L734)

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

### controller

```rust
fn controller(self: &Self) -> &Rc<SystemBackdropController>
```

The shared controller.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/system_backdrops.rs#L739)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- [`Receiver`](/docs/0.5.0/api/ferroui-system/task/oneshot/struct-receiver/)
- `Any`
- `ToOwned`
- `ErasedDestructor`
- `IntoEither`
- `Clone`
- `Deref`
- `Default`

## Availability

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