# LinedFlowLayout

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

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

```rust
struct LinedFlowLayout
```

A horizontally flowing layout with a fixed line height, proportional item
widths, bounded aspect-ratio history, and stable visible lines.

Unlike Stack, Flow and UniformGrid layouts this layout is unshareable. Its
state belongs to the layout, as in the WinUI class.

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

## Members

- [`TYPE`](#assoc_const-type)
- [`to_ref`](#function-to_ref)
- [`items_justification_property`](#function-items_justification_property)
- [`items_stretch_property`](#function-items_stretch_property)
- [`min_item_spacing_property`](#function-min_item_spacing_property)
- [`line_spacing_property`](#function-line_spacing_property)
- [`line_height_property`](#function-line_height_property)
- [`actual_line_height_property`](#function-actual_line_height_property)
- [`construct`](#function-construct)
- [`new`](#function-new)
- [`items_justification`](#function-items_justification)
- [`set_items_justification`](#function-set_items_justification)
- [`items_stretch`](#function-items_stretch)
- [`set_items_stretch`](#function-set_items_stretch)
- [`min_item_spacing`](#function-min_item_spacing)
- [`set_min_item_spacing`](#function-set_min_item_spacing)
- [`line_spacing`](#function-line_spacing)
- [`set_line_spacing`](#function-set_line_spacing)
- [`line_height`](#function-line_height)
- [`set_line_height`](#function-set_line_height)
- [`actual_line_height`](#function-actual_line_height)
- [`requested_range_start_index`](#function-requested_range_start_index)
- [`requested_range_length`](#function-requested_range_length)
- [`items_info_requested`](#function-items_info_requested)
- [`items_unlocked`](#function-items_unlocked)
- [`invalidate_items_info`](#function-invalidate_items_info)
- [`lock_item_to_line`](#function-lock_item_to_line)
- [`try_initialize_for_context`](#function-try_initialize_for_context)
- [`realized_range`](#function-realized_range)
- [`frozen_range`](#function-frozen_range)
- [`average_items_per_line`](#function-average_items_per_line)
- [`uses_fast_path_layout`](#function-uses_fast_path_layout)
- [`snap_to_power`](#function-snap_to_power)
- [`snap_average_items_per_line`](#function-snap_average_items_per_line)

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

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

### to_ref

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

Returns a strong reference to this object.

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

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

### items_justification_property

```rust
fn items_justification_property() -> &'static StyledProperty<LinedFlowLayoutItemsJustification>
```



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

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

### items_stretch_property

```rust
fn items_stretch_property() -> &'static StyledProperty<LinedFlowLayoutItemsStretch>
```



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

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

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

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

### line_height_property

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



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

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

### actual_line_height_property

```rust
fn actual_line_height_property() -> &'static DirectProperty<LinedFlowLayout, f64>
```



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

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

### construct

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



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

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

### new

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



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

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

### items_justification

```rust
fn items_justification(self: &Self) -> LinedFlowLayoutItemsJustification
```



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

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

### set_items_justification

```rust
fn set_items_justification(self: &Self, value: LinedFlowLayoutItemsJustification)
```



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

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

### items_stretch

```rust
fn items_stretch(self: &Self) -> LinedFlowLayoutItemsStretch
```



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

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

### set_items_stretch

```rust
fn set_items_stretch(self: &Self, value: LinedFlowLayoutItemsStretch)
```



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

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

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

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

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

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

### line_height

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



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

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

### set_line_height

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



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

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

### actual_line_height

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



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

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

### requested_range_start_index

```rust
fn requested_range_start_index(self: &Self) -> i32
```



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

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

### requested_range_length

```rust
fn requested_range_length(self: &Self) -> i32
```



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

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

### items_info_requested

```rust
fn items_info_requested(self: &Self, handler: impl Fn(&LinedFlowLayoutItemsInfoRequestedEventArgs) -> () + 'static) -> Rc<dyn IDisposable>
```



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

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

### items_unlocked

```rust
fn items_unlocked(self: &Self, handler: impl Fn() -> () + 'static) -> Rc<dyn IDisposable>
```



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

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

### invalidate_items_info

```rust
fn invalidate_items_info(self: &Self)
```



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

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

### lock_item_to_line

```rust
fn lock_item_to_line(self: &Self, index: i32) -> Result<i32, LinedFlowLayoutError>
```



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

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

### try_initialize_for_context

```rust
fn try_initialize_for_context(self: &Self, context: &Ref<VirtualizingLayoutContext>) -> Result<(), LinedFlowLayoutError>
```



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

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

### realized_range

```rust
fn realized_range(self: &Self) -> (i32, i32)
```



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

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

### frozen_range

```rust
fn frozen_range(self: &Self) -> (i32, i32)
```



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

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

### average_items_per_line

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



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

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

### uses_fast_path_layout

```rust
fn uses_fast_path_layout(self: &Self) -> bool
```



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

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

### snap_to_power

```rust
fn snap_to_power(value: f64, power: f64) -> f64
```



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

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

### snap_average_items_per_line

```rust
fn snap_average_items_per_line(old: f64, new: f64) -> (f64, f64)
```



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

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`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<LinedFlowLayout>`](/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/)
- [`FerroObjectImpl`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimpl/)
- [`LayoutImpl`](/docs/0.5.0/api/ferroui-controls-repeater/layouts/trait-layoutimpl/)
- [`VirtualizingLayoutImpl`](/docs/0.5.0/api/ferroui-controls-repeater/layouts/trait-virtualizinglayoutimpl/)
- `Drop`

## Availability

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