# IInsetsManager

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls/platform/trait-iinsetsmanager/

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

```rust
trait IInsetsManager
```

Manages the system bars and the safe area of a top-level.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/platform/i_insets_manager.rs#L10)

## Members

- [`is_system_bar_visible`](#function-is_system_bar_visible)
- [`set_is_system_bar_visible`](#function-set_is_system_bar_visible)
- [`display_edge_to_edge_preference`](#function-display_edge_to_edge_preference)
- [`set_display_edge_to_edge_preference`](#function-set_display_edge_to_edge_preference)
- [`displays_edge_to_edge`](#function-displays_edge_to_edge)
- [`safe_area_padding`](#function-safe_area_padding)
- [`system_bar_color`](#function-system_bar_color)
- [`set_system_bar_color`](#function-set_system_bar_color)
- [`safe_area_changed`](#function-safe_area_changed)

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

### is_system_bar_visible

```rust
fn is_system_bar_visible(self: &Self) -> Option<bool>
```

Gets whether the system bars are visible.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/platform/i_insets_manager.rs#L12)

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

### set_is_system_bar_visible

```rust
fn set_is_system_bar_visible(self: &Self, value: Option<bool>)
```

Sets whether the system bars are visible.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/platform/i_insets_manager.rs#L15)

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

### display_edge_to_edge_preference

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

Gets whether the window draws edge to edge, behind any visible
system bars.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/platform/i_insets_manager.rs#L19)

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

### set_display_edge_to_edge_preference

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

Sets whether the window draws edge to edge, behind any visible
system bars.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/platform/i_insets_manager.rs#L23)

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

### displays_edge_to_edge

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

Gets whether the window is currently displayed edge to edge.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/platform/i_insets_manager.rs#L26)

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

### safe_area_padding

```rust
fn safe_area_padding(self: &Self) -> Thickness
```

Gets the current safe area padding.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/platform/i_insets_manager.rs#L29)

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

### system_bar_color

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

Gets the system bar color.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/platform/i_insets_manager.rs#L32)

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

### set_system_bar_color

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

Sets the system bar color.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/platform/i_insets_manager.rs#L35)

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

### safe_area_changed

```rust
fn safe_area_changed(self: &Self, handler: Rc<dyn Fn(&SafeAreaChangedArgs) -> ()>) -> Rc<dyn IDisposable>
```

Occurs when the safe area for the current window changes.

Disposing the returned value removes the handler.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/platform/i_insets_manager.rs#L40)

## Trait implementations

- [`IInsetsManager`](/docs/0.5.0/api/ferroui-controls/platform/trait-iinsetsmanager/)

## Availability

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