# SystemBackdropConfiguration

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

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

```rust
struct SystemBackdropConfiguration
```

The policy of a system backdrop (WinUI `SystemBackdropConfiguration`):
whether its window is active, its theme and the high contrast state. The
XAML `SystemBackdrop` keeps one per target up to date.

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

## Members

- [`new`](#function-new)
- [`is_input_active`](#function-is_input_active)
- [`set_is_input_active`](#function-set_is_input_active)
- [`theme`](#function-theme)
- [`set_theme`](#function-set_theme)
- [`is_high_contrast`](#function-is_high_contrast)
- [`set_is_high_contrast`](#function-set_is_high_contrast)
- [`high_contrast_background_color`](#function-high_contrast_background_color)
- [`set_high_contrast_background_color`](#function-set_high_contrast_background_color)
- [`changed`](#function-changed)

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

### new

```rust
fn new() -> Rc<SystemBackdropConfiguration>
```

A configuration: not active, the default theme, no high contrast.

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

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

### is_input_active

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

`IsInputActive`: whether the window of the target has the input; an
inactive window shows the fallback colour.

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

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

### set_is_input_active

```rust
fn set_is_input_active(self: &Self, value: bool)
```



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

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

### theme

```rust
fn theme(self: &Self) -> SystemBackdropTheme
```

`Theme`.

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

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

### set_theme

```rust
fn set_theme(self: &Self, value: SystemBackdropTheme)
```



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

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

### is_high_contrast

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

`IsHighContrast`: the material shows the high contrast background
colour.

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

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

### set_is_high_contrast

```rust
fn set_is_high_contrast(self: &Self, value: bool)
```



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

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

### high_contrast_background_color

```rust
fn high_contrast_background_color(self: &Self) -> Option<Color>
```

`HighContrastBackgroundColor`: the colour shown in high contrast
(`None`: the fallback colour).

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

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

### set_high_contrast_background_color

```rust
fn set_high_contrast_background_color(self: &Self, value: Option<Color>)
```



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

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

### changed

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

Raised when a member changes. Dropping the returned guard removes the
handler; `Subscription::detach` keeps it for the life of the
configuration.

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

## 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`
- `Default`

## Availability

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