# FlexJustifyContent

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

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

```rust
enum FlexJustifyContent
```

Describes the main-axis alignment of items inside a `FlexPanel` line.

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

## Members

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

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

### FlexStart

```rust
FlexStart = 0
```

Child items are packed toward the start of the line.

This is the default value.

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

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

### FlexEnd

```rust
FlexEnd = 1
```

Child items are packed toward the end of the line.

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

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

### Center

```rust
Center = 2
```

Child items are packed toward the center of the line.

If the leftover free-space is negative, the child items will overflow
equally in both directions.

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

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

### SpaceBetween

```rust
SpaceBetween = 3
```

Child items are evenly distributed in the line, with no space on
either end.

If the leftover free-space is negative or there is only a single child
item on the line, this value is identical to
`FlexJustifyContent::FlexStart`.

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

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

### SpaceAround

```rust
SpaceAround = 4
```

Child items are evenly distributed in the line, with half-size spaces
on either end.

If the leftover free-space is negative or there is only a single child
item on the line, this value is identical to
`FlexJustifyContent::Center`.

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

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

### SpaceEvenly

```rust
SpaceEvenly = 5
```

Child items are evenly distributed in the line, with equal-size spaces
between each item and on either end.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/flex_panel/flex_justify_content.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/).
