# ICompositionSupportsSystemBackdrop

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

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

```rust
trait ICompositionSupportsSystemBackdrop
```

A target of a system backdrop (WinUI
`Microsoft.UI.Composition.ICompositionSupportsSystemBackdrop`): a window,
or a popup window. FerroUI's windows implement it.

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

## Members

- [`system_backdrop`](#function-system_backdrop)
- [`set_system_backdrop`](#function-set_system_backdrop)
- [`try_set_platform_system_backdrop`](#function-try_set_platform_system_backdrop)
- [`compositor`](#function-compositor)

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

### system_backdrop

```rust
fn system_backdrop(self: &Self) -> Option<Rc<CompositionBrush>>
```

`SystemBackdrop`: the brush the target draws under its content.

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

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

### set_system_backdrop

```rust
fn set_system_backdrop(self: &Self, brush: Option<Rc<CompositionBrush>>)
```

Sets the brush the target draws under its content (`None` draws
nothing, so what the platform draws behind the window shows).

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

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

### try_set_platform_system_backdrop

```rust
fn try_set_platform_system_backdrop(self: &Self, _backdrop: Option<&PlatformSystemBackdrop>) -> SystemBackdropSupport
```

Asks the platform to draw `backdrop` behind the target (`None`
removes it) and says how the target can show it (a FerroUI
addition).

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

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

### compositor

```rust
fn compositor(self: &Self) -> Option<Rc<Compositor>>
```

The compositor the target draws with.

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

## Availability

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