# LayoutAdapter

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-designer-tools/trait-layoutadapter/

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

```rust
trait LayoutAdapter
```

Third-party panels register source planners, with the same transactional validation as built-ins.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Tools/layout.rs#L350)

## Members

- [`panel_type`](#function-panel_type)
- [`capabilities`](#function-capabilities)
- [`panel_properties`](#function-panel_properties)
- [`plan`](#function-plan)
- [`design_helpers`](#function-design_helpers)
- [`placement`](#function-placement)
- [`plan_helper`](#function-plan_helper)

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

### panel_type

```rust
fn panel_type(self: &Self) -> &str
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Tools/layout.rs#L351)

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

### capabilities

```rust
fn capabilities(self: &Self) -> LayoutCapabilities
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Tools/layout.rs#L352)

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

### panel_properties

```rust
fn panel_properties(self: &Self) -> &[&str]
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Tools/layout.rs#L353)

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

### plan

```rust
fn plan(self: &Self, context: &LayoutContext<'_>, action: &LayoutAction) -> Result<Vec<Edit>>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Tools/layout.rs#L354)

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

### design_helpers

```rust
fn design_helpers(self: &Self, context: &LayoutContext<'_>, request: &LayoutHelperRequest) -> Result<LayoutHelperScene>
```

Optional design-time feature provider. The default draws only a generic container outline.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Tools/layout.rs#L356)

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

### placement

```rust
fn placement(self: &Self, _context: &LayoutContext<'_>, _panel: NodeId, _position: Point, _dragged: &[NodeId]) -> Result<Option<LayoutPlacement>>
```

Optional semantic placement provider. Indices always reference the original AST snapshot.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Tools/layout.rs#L364)

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

### plan_helper

```rust
fn plan_helper(self: &Self, context: &LayoutContext<'_>, action: &LayoutHandleAction, value: f64) -> Result<Vec<Edit>>
```

Override to implement Custom helper intents. Standard actions share existing source planners.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Tools/layout.rs#L374)

## Availability

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