# FlexAlignContent

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

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

```rust
enum FlexAlignContent
```

Defines the alignment mode of the lines inside a `FlexPanel` along the
cross-axis.

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

## Members

- [`FlexStart`](#variant-flexstart)
- [`FlexEnd`](#variant-flexend)
- [`Center`](#variant-center)
- [`Stretch`](#variant-stretch)
- [`SpaceBetween`](#variant-spacebetween)
- [`SpaceAround`](#variant-spacearound)
- [`SpaceEvenly`](#variant-spaceevenly)

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

### FlexStart

```rust
FlexStart = 0
```

Lines are packed toward the start of the container.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/flex_panel/flex_align_content.rs#L8)

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

### FlexEnd

```rust
FlexEnd = 1
```

Lines are packed toward the end of the container.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/flex_panel/flex_align_content.rs#L11)

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

### Center

```rust
Center = 2
```

Lines are packed toward the center of the container.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/flex_panel/flex_align_content.rs#L14)

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

### Stretch

```rust
Stretch = 3
```

Lines are stretched to take up the remaining space.

This is the default value of `FlexPanel::align_content`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/flex_panel/flex_align_content.rs#L19)

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

### SpaceBetween

```rust
SpaceBetween = 4
```

Lines are evenly distributed in the container, with no space on either
end.

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

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

### SpaceAround

```rust
SpaceAround = 5
```

Lines are evenly distributed in the container, with half-size spaces
on either end.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/flex_panel/flex_align_content.rs#L27)

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

### SpaceEvenly

```rust
SpaceEvenly = 6
```

Lines are evenly distributed in the container, with equal-size spaces
between each line and on either end.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/flex_panel/flex_align_content.rs#L31)

## 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/).
