# LayoutInformation

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/layout/struct-layoutinformation/

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

```rust
struct LayoutInformation
```

Provides access to layout information of a control.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/layout/layout_information.rs#L5)

## Members

- [`get_previous_measure_constraint`](#function-get_previous_measure_constraint)
- [`get_previous_arrange_bounds`](#function-get_previous_arrange_bounds)

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

### get_previous_measure_constraint

```rust
fn get_previous_measure_constraint(control: &Layoutable) -> Option<Size>
```

Gets the available size constraint passed in the previous layout pass.

Returns the previous control measure constraint, if any.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/layout/layout_information.rs#L11)

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

### get_previous_arrange_bounds

```rust
fn get_previous_arrange_bounds(control: &Layoutable) -> Option<Rect>
```

Gets the control bounds used in the previous layout arrange pass.

Returns the previous control arrange bounds, if any.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/layout/layout_information.rs#L18)

## Trait implementations

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

## Availability

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