# StackLayoutState

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

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

```rust
struct StackLayoutState
```



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

## Members

- [`flow_algorithm`](#struct_field-flow_algorithm)
- [`TYPE`](#assoc_const-type)
- [`to_ref`](#function-to_ref)
- [`construct`](#function-construct)
- [`new`](#function-new)
- [`initialize_for_context`](#function-initialize_for_context)
- [`uninitialize_for_context`](#function-uninitialize_for_context)
- [`on_element_measured`](#function-on_element_measured)
- [`on_measure_start`](#function-on_measure_start)
- [`on_element_sizes_reset`](#function-on_element_sizes_reset)
- [`total_element_size`](#function-total_element_size)
- [`max_arrange_bounds`](#function-max_arrange_bounds)
- [`are_elements_measured_regular`](#function-are_elements_measured_regular)
- [`total_elements_measured`](#function-total_elements_measured)

<a id="struct_field-flow_algorithm"></a>

### flow_algorithm

```rust
flow_algorithm: super::FlowLayoutAlgorithm
```



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

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

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

### to_ref

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

Returns a strong reference to this object.

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

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

### construct

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



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

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

### new

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



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

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

### initialize_for_context

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



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

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

### uninitialize_for_context

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



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

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

### on_element_measured

```rust
fn on_element_measured(self: &Self, index: i32, major: f64, minor: f64)
```



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

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

### on_measure_start

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



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

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

### on_element_sizes_reset

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



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

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

### total_element_size

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



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

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

### max_arrange_bounds

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



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

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

### are_elements_measured_regular

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



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

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

### total_elements_measured

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



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

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `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<StackLayoutState>`](/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/)

## Availability

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