# TopLevelImpl

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

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

```rust
trait TopLevelImpl: ContentControlImpl + $crate::Upcast<TopLevel>
```

The overridable members introduced by the class.

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

## Members

- [`handle_closed`](#function-handle_closed)
- [`handle_resized`](#function-handle_resized)
- [`on_opened`](#function-on_opened)
- [`on_closed`](#function-on_closed)
- [`opened_popups`](#function-opened_popups)

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

### handle_closed

```rust
fn handle_closed(this: &Self)
```

Handles a closed notification from the platform implementation.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/top_level.rs#L99)

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

### handle_resized

```rust
fn handle_resized(this: &Self, client_size: Size, reason: WindowResizeReason)
```

Handles a resize notification from the platform implementation:
`client_size` is the new client size and `reason` the reason for
the resize.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/top_level.rs#L99)

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

### on_opened

```rust
fn on_opened(this: &Self)
```

Raises the `Opened` event.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/top_level.rs#L99)

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

### on_closed

```rust
fn on_closed(this: &Self)
```

Raises the `Closed` event.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/top_level.rs#L99)

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

### opened_popups

```rust
fn opened_popups(this: &Self) -> Vec<Ref<crate::primitives::Popup>>
```

The popups that are currently open directly in this top level,
in the order they were opened.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/top_level.rs#L99)

## Trait implementations

- [`TopLevelImpl`](/docs/0.5.0/api/ferroui-controls/trait-toplevelimpl/)

## Availability

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