# IFlowLayoutAlgorithmDelegates

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

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

```rust
trait IFlowLayoutAlgorithmDelegates
```

The policy hooks used by Stack, Flow and UniformGrid layouts.

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

## Members

- [`algorithm_get_measure_size`](#function-algorithm_get_measure_size)
- [`algorithm_get_provisional_arrange_size`](#function-algorithm_get_provisional_arrange_size)
- [`algorithm_should_break_line`](#function-algorithm_should_break_line)
- [`algorithm_get_anchor_for_realization_rect`](#function-algorithm_get_anchor_for_realization_rect)
- [`algorithm_get_anchor_for_target_element`](#function-algorithm_get_anchor_for_target_element)
- [`algorithm_get_extent`](#function-algorithm_get_extent)
- [`algorithm_on_element_measured`](#function-algorithm_on_element_measured)
- [`algorithm_on_line_arranged`](#function-algorithm_on_line_arranged)
- [`algorithm_on_layout_round_factor_changed`](#function-algorithm_on_layout_round_factor_changed)
- [`algorithm_set_anchor_info`](#function-algorithm_set_anchor_info)

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

### algorithm_get_measure_size

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



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

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

### algorithm_get_provisional_arrange_size

```rust
fn algorithm_get_provisional_arrange_size(self: &Self, index: i32, measure_size: Size, desired_size: Size, context: &Ref<VirtualizingLayoutContext>) -> Size
```



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

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

### algorithm_should_break_line

```rust
fn algorithm_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_algorithm.rs#L70)

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

### algorithm_get_anchor_for_realization_rect

```rust
fn algorithm_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_algorithm.rs#L71)

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

### algorithm_get_anchor_for_target_element

```rust
fn algorithm_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_algorithm.rs#L76)

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

### algorithm_get_extent

```rust
fn algorithm_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_algorithm.rs#L82)

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

### algorithm_on_element_measured

```rust
fn algorithm_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_algorithm.rs#L89)

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

### algorithm_on_line_arranged

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



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

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

### algorithm_on_layout_round_factor_changed

```rust
fn algorithm_on_layout_round_factor_changed(self: &Self, context: &Ref<VirtualizingLayoutContext>)
```



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

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

### algorithm_set_anchor_info

```rust
fn algorithm_set_anchor_info(self: &Self, index: i32, offset: f64)
```



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

## Availability

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