# LayoutHelperScene

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-designer-tools/struct-layouthelperscene/

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

```rust
struct LayoutHelperScene
```



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

## Members

- [`panel`](#struct_field-panel)
- [`title`](#struct_field-title)
- [`primitives`](#struct_field-primitives)
- [`handles`](#struct_field-handles)
- [`placement`](#struct_field-placement)
- [`append_margin_helpers`](#function-append_margin_helpers)
- [`generic`](#function-generic)
- [`validate`](#function-validate)
- [`line`](#function-line)
- [`rectangle`](#function-rectangle)
- [`label`](#function-label)

<a id="struct_field-panel"></a>

### panel

```rust
panel: ferroui_designer_core::NodeId
```



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

<a id="struct_field-title"></a>

### title

```rust
title: String
```



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

<a id="struct_field-primitives"></a>

### primitives

```rust
primitives: Vec<LayoutGuide>
```



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

<a id="struct_field-handles"></a>

### handles

```rust
handles: Vec<LayoutHandle>
```



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

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

### placement

```rust
placement: Option<LayoutPlacement>
```



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

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

### append_margin_helpers

```rust
fn append_margin_helpers(self: &mut Self, context: &LayoutContext<'_>, node: NodeId) -> Result<()>
```

Append a direct child's margin guides in this context's measured coordinate space.
Native hosts with transformed internal presenters can compose this small scene into
the panel scene while retaining the child's authored units for handle gestures.

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

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

### generic

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



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

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

### validate

```rust
fn validate(self: &Self) -> Result<()>
```



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

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

### line

```rust
fn line(self: &mut Self, start: Point, end: Point, role: LayoutGuideRole)
```



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

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

### rectangle

```rust
fn rectangle(self: &mut Self, bounds: Rect, role: LayoutGuideRole, filled: bool)
```



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

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

### label

```rust
fn label(self: &mut Self, position: Point, text: impl Into<String>, role: LayoutGuideRole)
```



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

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- `DeserializeOwned`
- `Clone`
- `Debug`
- `StructuralPartialEq`
- `PartialEq`
- `Serialize`
- `Deserialize<'de>`

## Availability

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