# IUpdateColumnLayout

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls-treedatagrid/models/trait-iupdatecolumnlayout/

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

```rust
trait IUpdateColumnLayout: IColumn
```

The layout of a column (`IUpdateColumnLayout`).

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/TreeDataGrid/FerroUI.Controls.TreeDataGrid/models/contracts.rs#L203)

## Members

- [`min_actual_width`](#function-min_actual_width)
- [`max_actual_width`](#function-max_actual_width)
- [`star_width_was_constrained`](#function-star_width_was_constrained)
- [`cell_measured`](#function-cell_measured)
- [`calculate_star_width`](#function-calculate_star_width)
- [`commit_actual_width`](#function-commit_actual_width)
- [`set_width`](#function-set_width)

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

### min_actual_width

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/TreeDataGrid/FerroUI.Controls.TreeDataGrid/models/contracts.rs#L204)

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

### max_actual_width

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/TreeDataGrid/FerroUI.Controls.TreeDataGrid/models/contracts.rs#L205)

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

### star_width_was_constrained

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/TreeDataGrid/FerroUI.Controls.TreeDataGrid/models/contracts.rs#L206)

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

### cell_measured

```rust
fn cell_measured(self: &Self, width: f64, row_index: i32) -> f64
```

A cell of the column at `row_index` was measured at `width`; the width the cell gets.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/TreeDataGrid/FerroUI.Controls.TreeDataGrid/models/contracts.rs#L208)

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

### calculate_star_width

```rust
fn calculate_star_width(self: &Self, available_width: f64, total_stars: f64)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/TreeDataGrid/FerroUI.Controls.TreeDataGrid/models/contracts.rs#L209)

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

### commit_actual_width

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

Commits the width laid out; true when it changed.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/TreeDataGrid/FerroUI.Controls.TreeDataGrid/models/contracts.rs#L211)

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

### set_width

```rust
fn set_width(self: &Self, width: GridLength)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/TreeDataGrid/FerroUI.Controls.TreeDataGrid/models/contracts.rs#L212)

## Trait implementations

- [`IUpdateColumnLayout`](/docs/0.5.0/api/ferroui-controls-treedatagrid/models/trait-iupdatecolumnlayout/)

## Availability

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