# FlowLayout

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls-repeater/layouts/struct-flowlayout/

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

```rust
struct FlowLayout
```



[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/layouts/flow_layout.rs#L15)

## Members

- [`TYPE`](#assoc_const-type)
- [`to_ref`](#function-to_ref)
- [`get_measure_size`](#function-get_measure_size)
- [`get_provisional_arrange_size`](#function-get_provisional_arrange_size)
- [`should_break_line`](#function-should_break_line)
- [`get_anchor_for_realization_rect`](#function-get_anchor_for_realization_rect)
- [`get_anchor_for_target_element`](#function-get_anchor_for_target_element)
- [`get_extent`](#function-get_extent)
- [`on_element_measured`](#function-on_element_measured)
- [`on_line_arranged`](#function-on_line_arranged)
- [`orientation_property`](#function-orientation_property)
- [`line_spacing_property`](#function-line_spacing_property)
- [`min_item_spacing_property`](#function-min_item_spacing_property)
- [`line_alignment_property`](#function-line_alignment_property)
- [`construct`](#function-construct)
- [`new`](#function-new)
- [`orientation`](#function-orientation)
- [`set_orientation`](#function-set_orientation)
- [`line_spacing`](#function-line_spacing)
- [`set_line_spacing`](#function-set_line_spacing)
- [`min_item_spacing`](#function-min_item_spacing)
- [`set_min_item_spacing`](#function-set_min_item_spacing)
- [`line_alignment`](#function-line_alignment)
- [`set_line_alignment`](#function-set_line_alignment)
- [`state`](#function-state)

<a id="assoc_const-type"></a>

### TYPE

```rust
const TYPE: &'static $crate::TypeInfo
```

The runtime type of this class.

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

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

### to_ref

```rust
fn to_ref(self: &Self) -> $crate::Ref<FlowLayout>
```

Returns a strong reference to this object.

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

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

### get_measure_size

```rust
fn get_measure_size(self: &Self, index: i32, available_size: Size) -> Size
```



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

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

### get_provisional_arrange_size

```rust
fn get_provisional_arrange_size(self: &Self, index: i32, measure_size: Size, desired_size: Size) -> Size
```



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

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

### should_break_line

```rust
fn should_break_line(self: &Self, index: i32, remaining_space: f64) -> bool
```



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

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

### get_anchor_for_realization_rect

```rust
fn get_anchor_for_realization_rect(self: &Self, available_size: Size, context: &Ref<VirtualizingLayoutContext>) -> FlowLayoutAnchorInfo
```



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

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

### get_anchor_for_target_element

```rust
fn get_anchor_for_target_element(self: &Self, index: i32, available_size: Size, context: &Ref<VirtualizingLayoutContext>) -> FlowLayoutAnchorInfo
```



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

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

### get_extent

```rust
fn get_extent(self: &Self, available_size: Size, context: &Ref<VirtualizingLayoutContext>, first: FlowLayoutRealizedElement, last: FlowLayoutRealizedElement) -> Rect
```



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

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

### on_element_measured

```rust
fn on_element_measured(self: &Self, element: &Ref<Control>, index: i32, available_size: Size, measure_size: Size, desired_size: Size, provisional_arrange_size: Size, context: &Ref<VirtualizingLayoutContext>)
```



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

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

### on_line_arranged

```rust
fn on_line_arranged(self: &Self, start_index: i32, count_in_line: i32, line_size: f64, context: &Ref<VirtualizingLayoutContext>)
```



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

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

### orientation_property

```rust
fn orientation_property() -> &'static StyledProperty<Orientation>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/layouts/flow_layout.rs#L48)

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

### line_spacing_property

```rust
fn line_spacing_property() -> &'static StyledProperty<f64>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/layouts/flow_layout.rs#L48)

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

### min_item_spacing_property

```rust
fn min_item_spacing_property() -> &'static StyledProperty<f64>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/layouts/flow_layout.rs#L48)

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

### line_alignment_property

```rust
fn line_alignment_property() -> &'static StyledProperty<FlowLayoutLineAlignment>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/layouts/flow_layout.rs#L48)

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

### construct

```rust
fn construct() -> Self
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/layouts/flow_layout.rs#L55)

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

### new

```rust
fn new() -> Ref<Self>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/layouts/flow_layout.rs#L60)

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

### orientation

```rust
fn orientation(self: &Self) -> Orientation
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/layouts/flow_layout.rs#L63)

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

### set_orientation

```rust
fn set_orientation(self: &Self, value: Orientation)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/layouts/flow_layout.rs#L66)

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

### line_spacing

```rust
fn line_spacing(self: &Self) -> f64
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/layouts/flow_layout.rs#L69)

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

### set_line_spacing

```rust
fn set_line_spacing(self: &Self, value: f64)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/layouts/flow_layout.rs#L72)

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

### min_item_spacing

```rust
fn min_item_spacing(self: &Self) -> f64
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/layouts/flow_layout.rs#L75)

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

### set_min_item_spacing

```rust
fn set_min_item_spacing(self: &Self, value: f64)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/layouts/flow_layout.rs#L78)

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

### line_alignment

```rust
fn line_alignment(self: &Self) -> FlowLayoutLineAlignment
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/layouts/flow_layout.rs#L81)

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

### set_line_alignment

```rust
fn set_line_alignment(self: &Self, value: FlowLayoutLineAlignment)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/layouts/flow_layout.rs#L84)

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

### state

```rust
fn state(context: &Ref<VirtualizingLayoutContext>) -> Option<Ref<FlowLayoutState>>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/layouts/flow_layout.rs#L87)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`FlowLayoutImplExt`](/docs/0.5.0/api/ferroui-controls-repeater/layouts/trait-flowlayoutimplext/)
- [`LayoutImplExt`](/docs/0.5.0/api/ferroui-controls-repeater/layouts/trait-layoutimplext/)
- [`VirtualizingLayoutImplExt`](/docs/0.5.0/api/ferroui-controls-repeater/layouts/trait-virtualizinglayoutimplext/)
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- [`Receiver`](/docs/0.5.0/api/ferroui-system/task/oneshot/struct-receiver/)
- `Any`
- [`FerroObjectImplExt`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimplext/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- `Deref`
- [`Upcast<T>`](/docs/0.5.0/api/ferroui-base/trait-upcast/)
- [`Upcast<FlowLayout>`](/docs/0.5.0/api/ferroui-base/trait-upcast/)
- [`StaticType`](/docs/0.5.0/api/ferroui-base/trait-statictype/)
- [`ObjectType`](/docs/0.5.0/api/ferroui-base/trait-objecttype/)
- [`Subclassable<T>`](/docs/0.5.0/api/ferroui-base/trait-subclassable/)
- [`DefaultConstructible`](/docs/0.5.0/api/ferroui-base/trait-defaultconstructible/)
- [`LayoutImpl`](/docs/0.5.0/api/ferroui-controls-repeater/layouts/trait-layoutimpl/)
- [`FerroObjectImpl`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimpl/)
- [`VirtualizingLayoutImpl`](/docs/0.5.0/api/ferroui-controls-repeater/layouts/trait-virtualizinglayoutimpl/)
- [`FlowLayoutImpl`](/docs/0.5.0/api/ferroui-controls-repeater/layouts/trait-flowlayoutimpl/)

## Availability

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