# ILayoutRoot

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/layout/trait-ilayoutroot/

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

```rust
trait ILayoutRoot
```

Defines the root of a tree that can be laid out.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/layout/i_layout_root.rs#L6)

## Members

- [`layout_scaling`](#function-layout_scaling)
- [`layout_manager`](#function-layout_manager)
- [`root_visual`](#function-root_visual)

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

### layout_scaling

```rust
fn layout_scaling(self: &Self) -> f64
```

The scaling factor to use in layout.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/layout/i_layout_root.rs#L8)

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

### layout_manager

```rust
fn layout_manager(self: &Self) -> Rc<dyn ILayoutManager>
```

The layout manager that lays out the tree.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/layout/i_layout_root.rs#L11)

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

### root_visual

```rust
fn root_visual(self: &Self) -> Ref<Layoutable>
```

The root layoutable.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/layout/i_layout_root.rs#L14)

## Availability

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