# SystemBackdrop

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

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

```rust
struct SystemBackdrop
```

The base of the system backdrops of the object model (WinUI
`Microsoft.UI.Xaml.Media.SystemBackdrop`): set on a window
(`TopLevel::system_backdrop`), it
is connected to the window as its target
(`on_target_connected`) and
keeps a default configuration of the target up to date: the theme of
the window, the high contrast setting of the platform and whether the
window is active.

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

## Members

- [`TYPE`](#assoc_const-type)
- [`to_ref`](#function-to_ref)
- [`on_target_connected`](#function-on_target_connected)
- [`on_target_disconnected`](#function-on_target_disconnected)
- [`on_default_system_backdrop_configuration_changed`](#function-on_default_system_backdrop_configuration_changed)
- [`construct`](#function-construct)
- [`get_default_system_backdrop_configuration`](#function-get_default_system_backdrop_configuration)

<a id="assoc_const-type"></a>

### TYPE

```rust
const TYPE: &'static $crate::TypeInfo
```

The runtime type of this class.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/media/system_backdrop.rs#L286)

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

### to_ref

```rust
fn to_ref(self: &Self) -> $crate::Ref<SystemBackdrop>
```

Returns a strong reference to this object.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/media/system_backdrop.rs#L286)

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

### on_target_connected

```rust
fn on_target_connected(self: &Self, connected_target: &Rc<dyn ICompositionSupportsSystemBackdrop>, xaml_root: &TopLevel)
```

`OnTargetConnected`: the backdrop was set on `xaml_root`, whose
target is `connected_target`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/media/system_backdrop.rs#L286)

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

### on_target_disconnected

```rust
fn on_target_disconnected(self: &Self, disconnected_target: &Rc<dyn ICompositionSupportsSystemBackdrop>)
```

`OnTargetDisconnected`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/media/system_backdrop.rs#L286)

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

### on_default_system_backdrop_configuration_changed

```rust
fn on_default_system_backdrop_configuration_changed(self: &Self, target: &Rc<dyn ICompositionSupportsSystemBackdrop>, xaml_root: &TopLevel)
```

`OnDefaultSystemBackdropConfigurationChanged`: the theme, the
high contrast or the activation of the target changed.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/media/system_backdrop.rs#L286)

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

### construct

```rust
fn construct() -> Self
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/media/system_backdrop.rs#L413)

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

### get_default_system_backdrop_configuration

```rust
fn get_default_system_backdrop_configuration(self: &Self, target: &Rc<dyn ICompositionSupportsSystemBackdrop>, _xaml_root: Option<&TopLevel>) -> Option<Rc<SystemBackdropConfiguration>>
```

`GetDefaultSystemBackdropConfiguration`: the configuration the
backdrop keeps for `target` (`None` for a target it is not
connected to).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/media/system_backdrop.rs#L420)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`SystemBackdropImplExt`](/docs/0.5.0/api/ferroui-controls/media/trait-systembackdropimplext/)
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- [`Receiver`](/docs/0.5.0/api/ferroui-system/task/oneshot/struct-receiver/)
- `Any`
- [`FerroObjectImplExt`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimplext/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- `Deref`
- [`Upcast<T>`](/docs/0.5.0/api/ferroui-base/trait-upcast/)
- [`Upcast<SystemBackdrop>`](/docs/0.5.0/api/ferroui-base/trait-upcast/)
- [`StaticType`](/docs/0.5.0/api/ferroui-base/trait-statictype/)
- [`ObjectType`](/docs/0.5.0/api/ferroui-base/trait-objecttype/)
- [`Subclassable<T>`](/docs/0.5.0/api/ferroui-base/trait-subclassable/)
- [`FerroObjectImpl`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimpl/)
- [`SystemBackdropImpl`](/docs/0.5.0/api/ferroui-controls/media/trait-systembackdropimpl/)

## Availability

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