# ISingleTopLevelApplicationLifetime

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

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

```rust
trait ISingleTopLevelApplicationLifetime: IApplicationLifetime
```

Used for the single-view lifetimes of platforms with a single top-level
to get the top-level that hosts the main view.

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

## Members

- [`top_level`](#function-top_level)

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

### top_level

```rust
fn top_level(self: &Self) -> Option<Ref<TopLevel>>
```

The top-level that hosts the main view of the application.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/application_lifetimes/i_single_top_level_application_lifetime.rs#L9)

## Availability

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