# SystemBackdropController

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

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

```rust
struct SystemBackdropController
```

A system backdrop controller: the shared implementation of
[`MicaController`](/docs/0.5.0/api/ferroui-base/rendering/composition/system_backdrops/struct-micacontroller/) and [`DesktopAcrylicController`](/docs/0.5.0/api/ferroui-base/rendering/composition/system_backdrops/struct-desktopacryliccontroller/).

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

## Members

- [`colors`](#function-colors)
- [`add_system_backdrop_target`](#function-add_system_backdrop_target)
- [`remove_system_backdrop_target`](#function-remove_system_backdrop_target)
- [`remove_all_system_backdrop_targets`](#function-remove_all_system_backdrop_targets)
- [`set_system_backdrop_configuration`](#function-set_system_backdrop_configuration)
- [`state`](#function-state)
- [`state_changed`](#function-state_changed)
- [`target_state`](#function-target_state)
- [`tint_color`](#function-tint_color)
- [`set_tint_color`](#function-set_tint_color)
- [`tint_opacity`](#function-tint_opacity)
- [`set_tint_opacity`](#function-set_tint_opacity)
- [`luminosity_opacity`](#function-luminosity_opacity)
- [`set_luminosity_opacity`](#function-set_luminosity_opacity)
- [`fallback_color`](#function-fallback_color)
- [`set_fallback_color`](#function-set_fallback_color)
- [`reset_properties`](#function-reset_properties)
- [`close`](#function-close)
- [`is_closed`](#function-is_closed)

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

### colors

```rust
fn colors(self: &Self) -> SystemBackdropColors
```

The colours in effect: the ones set, else the defaults.

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

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

### add_system_backdrop_target

```rust
fn add_system_backdrop_target(self: &Self, target: Rc<dyn ICompositionSupportsSystemBackdrop>) -> bool
```

`AddSystemBackdropTarget`: returns `false` when the target is already
one or the controller is closed.

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

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

### remove_system_backdrop_target

```rust
fn remove_system_backdrop_target(self: &Self, target: &Rc<dyn ICompositionSupportsSystemBackdrop>) -> bool
```

`RemoveSystemBackdropTarget`: the target shows nothing of the
controller any more.

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

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

### remove_all_system_backdrop_targets

```rust
fn remove_all_system_backdrop_targets(self: &Self)
```

`RemoveAllSystemBackdropTargets`.

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

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

### set_system_backdrop_configuration

```rust
fn set_system_backdrop_configuration(self: &Self, configuration: Option<Rc<SystemBackdropConfiguration>>)
```

`SetSystemBackdropConfiguration`: the policy the controller follows
(`None`: active, the theme of the platform).

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

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

### state

```rust
fn state(self: &Self) -> SystemBackdropState
```

The state of the controller (`State`, Windows App SDK 1.3).

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

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

### state_changed

```rust
fn state_changed(self: &Self, handler: impl Fn(SystemBackdropState) -> () + 'static) -> Subscription
```

`StateChanged`. Dropping the returned guard removes the handler;
`Subscription::detach` keeps it for the life of the controller.

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

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

### target_state

```rust
fn target_state(self: &Self, target: &Rc<dyn ICompositionSupportsSystemBackdrop>) -> SystemBackdropState
```

The state the controller is in for `target`.

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

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

### tint_color

```rust
fn tint_color(self: &Self) -> Color
```

`TintColor`.

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

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

### set_tint_color

```rust
fn set_tint_color(self: &Self, value: Color)
```



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

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

### tint_opacity

```rust
fn tint_opacity(self: &Self) -> f32
```

`TintOpacity`.

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

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

### set_tint_opacity

```rust
fn set_tint_opacity(self: &Self, value: f32)
```



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

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

### luminosity_opacity

```rust
fn luminosity_opacity(self: &Self) -> f32
```

`LuminosityOpacity`.

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

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

### set_luminosity_opacity

```rust
fn set_luminosity_opacity(self: &Self, value: f32)
```



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

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

### fallback_color

```rust
fn fallback_color(self: &Self) -> Color
```

`FallbackColor`.

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

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

### set_fallback_color

```rust
fn set_fallback_color(self: &Self, value: Color)
```



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

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

### reset_properties

```rust
fn reset_properties(self: &Self)
```

`ResetProperties`: the colours go back to the defaults of the kind
and theme.

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

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

### close

```rust
fn close(self: &Self)
```

`Close`: the targets are released and the controller does nothing
more.

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

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

### is_closed

```rust
fn is_closed(self: &Self) -> bool
```

Whether the controller is closed.

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

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ErasedDestructor`
- `IntoEither`

## Availability

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