# WrapPanelItemsAlignment

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls/enum-wrappanelitemsalignment/

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

```rust
enum WrapPanelItemsAlignment
```

Defines how items are aligned and spaced in a [`WrapPanel`](/docs/0.5.0/api/ferroui-controls/struct-wrappanel/).

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/wrap_panel.rs#L19)

## Members

- [`Start`](#variant-start)
- [`Center`](#variant-center)
- [`End`](#variant-end)
- [`Justify`](#variant-justify)
- [`Stretch`](#variant-stretch)
- [`StretchAll`](#variant-stretchall)

<a id="variant-start"></a>

### Start

```rust
Start = 0
```

Items are laid out so the first one in each column/row touches the
top/left of the panel.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/wrap_panel.rs#L23)

<a id="variant-center"></a>

### Center

```rust
Center = 1
```

Items are laid out so that each column/row is centred vertically/
horizontally within the panel.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/wrap_panel.rs#L26)

<a id="variant-end"></a>

### End

```rust
End = 2
```

Items are laid out so the last one in each column/row touches the
bottom/right of the panel.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/wrap_panel.rs#L29)

<a id="variant-justify"></a>

### Justify

```rust
Justify = 3
```

Items are laid out with equal spacing between them within each
column/row.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/wrap_panel.rs#L32)

<a id="variant-stretch"></a>

### Stretch

```rust
Stretch = 4
```

Items are stretched evenly to fill the entire height/width of each
column/row (the last line excluded).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/wrap_panel.rs#L35)

<a id="variant-stretchall"></a>

### StretchAll

```rust
StretchAll = 5
```

Items are stretched evenly to fill the entire height/width of each
column/row (the last line included).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/wrap_panel.rs#L38)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- [`ResourceKeyObject`](/docs/0.5.0/api/ferroui-base/controls/trait-resourcekeyobject/)
- [`PropertyValue`](/docs/0.5.0/api/ferroui-base/trait-propertyvalue/)
- [`AnyValue`](/docs/0.5.0/api/ferroui-base/trait-anyvalue/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- [`MarkupTyped`](/docs/0.5.0/api/ferroui-base/metadata/trait-markuptyped/)
- [`ValueTypeRegistration`](/docs/0.5.0/api/ferroui-base/data/core/trait-valuetyperegistration/)
- `Clone`
- `Copy`
- `Debug`
- `Default`
- `StructuralPartialEq`
- `PartialEq`
- `Eq`
- `Hash`

## Availability

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