# ColumnFlowLayout

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-pretext-layout/struct-columnflowlayout/

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

```rust
struct ColumnFlowLayout
```

Flow text through an ordered set of rectangular columns, avoiding obstacles.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Pretext/FerroUI.Pretext.Layout/column_flow_layout.rs#L39)

## Members

- [`layout_into_columns`](#function-layout_into_columns)

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

### layout_into_columns

```rust
fn layout_into_columns(prepared: &PreparedTextWithSegments, columns: &[RectObstacle], rectangles: &[RectObstacle], circles: &[CircleObstacle], line_height: f64, min_slot_width: f64) -> Result<Vec<PositionedLine>, LayoutError>
```

Text that does not fit the supplied columns is left unmaterialized. Fully
blocked rows advance vertically without consuming source text. Exactly
one (the widest) available horizontal slot is used on each row.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Pretext/FerroUI.Pretext.Layout/column_flow_layout.rs#L45)

## Trait implementations

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