# GridTrackEditor

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-designer/struct-gridtrackeditor/

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

```rust
struct GridTrackEditor
```

An axis picker, length/unit editor and insertion/removal commands in one native row.
Configure it from accepted state; a change callback must validate and apply the intent.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/grid_track_editor.rs#L19)

## Members

- [`new`](#function-new)
- [`control`](#function-control)
- [`axis`](#function-axis)
- [`track_selector`](#function-track_selector)
- [`length_editor`](#function-length_editor)
- [`unit_selector`](#function-unit_selector)
- [`selected_track`](#function-selected_track)
- [`on_change`](#function-on_change)
- [`on_selected`](#function-on_selected)
- [`configure`](#function-configure)

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

### new

```rust
fn new(axis: Axis) -> Rc<Self>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/grid_track_editor.rs#L36)

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

### control

```rust
fn control(self: &Self) -> Ref<Control>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/grid_track_editor.rs#L219)

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

### axis

```rust
fn axis(self: &Self) -> Axis
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/grid_track_editor.rs#L222)

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

### track_selector

```rust
fn track_selector(self: &Self) -> Ref<ComboBox>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/grid_track_editor.rs#L225)

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

### length_editor

```rust
fn length_editor(self: &Self) -> Ref<TextBox>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/grid_track_editor.rs#L228)

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

### unit_selector

```rust
fn unit_selector(self: &Self) -> Ref<ComboBox>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/grid_track_editor.rs#L231)

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

### selected_track

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/grid_track_editor.rs#L234)

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

### on_change

```rust
fn on_change(self: &Self, handler: impl Fn(GridTrackChange) -> Result<(), String> + 'static)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/grid_track_editor.rs#L237)

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

### on_selected

```rust
fn on_selected(self: &Self, handler: impl Fn(usize) -> () + 'static)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/grid_track_editor.rs#L240)

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

### configure

```rust
fn configure(self: &Self, values: Vec<String>, selected: usize, writable: bool)
```

Empty definitions represent the native implicit star track. Expressions are displayed
read-only; selecting or configuring the control never emits an authoring command.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/grid_track_editor.rs#L246)

## 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`
- `Same`

## Availability

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