# LinedFlowLayoutItemAspectRatios

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

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

```rust
struct LinedFlowLayoutItemAspectRatios
```

Bounded, block-based ratio history. Recycling always prefers an empty
block, then the block whose midpoint is furthest from the new item.

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

## Members

- [`new`](#function-new)
- [`block_count`](#function-block_count)
- [`is_empty`](#function-is_empty)
- [`has_lower_weight`](#function-has_lower_weight)
- [`average_aspect_ratio`](#function-average_aspect_ratio)
- [`get_at`](#function-get_at)
- [`set_at`](#function-set_at)
- [`clear`](#function-clear)
- [`resize`](#function-resize)

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

### new

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



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

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

### block_count

```rust
fn block_count(self: &Self) -> usize
```



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

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

### is_empty

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



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

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

### has_lower_weight

```rust
fn has_lower_weight(self: &Self, first: i32, last: i32, weight: i32) -> bool
```



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

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

### average_aspect_ratio

```rust
fn average_aspect_ratio(self: &Self, first: i32, last: i32, outside_weight: i32) -> f64
```



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

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

### get_at

```rust
fn get_at(self: &Self, index: i32) -> ItemAspectRatio
```



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

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

### set_at

```rust
fn set_at(self: &mut Self, index: i32, value: ItemAspectRatio)
```



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

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

### clear

```rust
fn clear(self: &mut Self)
```



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

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

### resize

```rust
fn resize(self: &mut Self, size: usize, reference_index: i32)
```



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

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- `Default`

## Availability

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