# IHostedVisualTreeRoot

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/visual_tree/trait-ihostedvisualtreeroot/

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

```rust
trait IHostedVisualTreeRoot
```

Interface for controls that are at the root of a hosted visual tree,
such as popups.

An input element that is such a root returns itself from the
`as_hosted_visual_tree_root` virtual member of `InputElement`.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual_tree/i_hosted_visual_tree_root.rs#L8)

## Members

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

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

### host

```rust
fn host(self: &Self) -> Option<Ref<Visual>>
```

The visual tree host.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual_tree/i_hosted_visual_tree_root.rs#L10)

## Availability

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