# LayoutableProps

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-view/generated/builders/trait-layoutableprops/

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

```rust
trait LayoutableProps: ElementBuilder
```

The properties and routed events of `Layoutable`.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L4853)

## Members

- [`width`](#function-width)
- [`height`](#function-height)
- [`min_width`](#function-min_width)
- [`max_width`](#function-max_width)
- [`min_height`](#function-min_height)
- [`max_height`](#function-max_height)
- [`margin`](#function-margin)
- [`horizontal_alignment`](#function-horizontal_alignment)
- [`vertical_alignment`](#function-vertical_alignment)
- [`use_layout_rounding`](#function-use_layout_rounding)

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

### width

```rust
fn width<M>(self: Self, value: impl IntoProp<f64, M>) -> Self
```

Sets `Layoutable::width_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L4855)

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

### height

```rust
fn height<M>(self: Self, value: impl IntoProp<f64, M>) -> Self
```

Sets `Layoutable::height_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L4860)

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

### min_width

```rust
fn min_width<M>(self: Self, value: impl IntoProp<f64, M>) -> Self
```

Sets `Layoutable::min_width_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L4865)

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

### max_width

```rust
fn max_width<M>(self: Self, value: impl IntoProp<f64, M>) -> Self
```

Sets `Layoutable::max_width_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L4870)

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

### min_height

```rust
fn min_height<M>(self: Self, value: impl IntoProp<f64, M>) -> Self
```

Sets `Layoutable::min_height_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L4875)

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

### max_height

```rust
fn max_height<M>(self: Self, value: impl IntoProp<f64, M>) -> Self
```

Sets `Layoutable::max_height_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L4880)

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

### margin

```rust
fn margin<M>(self: Self, value: impl IntoProp<ferroui_base::Thickness, M>) -> Self
```

Sets `Layoutable::margin_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L4885)

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

### horizontal_alignment

```rust
fn horizontal_alignment<M>(self: Self, value: impl IntoProp<ferroui_base::layout::HorizontalAlignment, M>) -> Self
```

Sets `Layoutable::horizontal_alignment_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L4890)

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

### vertical_alignment

```rust
fn vertical_alignment<M>(self: Self, value: impl IntoProp<ferroui_base::layout::VerticalAlignment, M>) -> Self
```

Sets `Layoutable::vertical_alignment_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L4895)

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

### use_layout_rounding

```rust
fn use_layout_rounding<M>(self: Self, value: impl IntoProp<bool, M>) -> Self
```

Sets `Layoutable::use_layout_rounding_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L4900)

## Trait implementations

- [`LayoutableProps`](/docs/0.5.0/api/ferroui-view/generated/builders/trait-layoutableprops/)

## Availability

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