# IUndoRedoHost

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls/utils/trait-iundoredohost/

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

```rust
trait IUndoRedoHost<TState>
```

The object whose state an [`UndoRedoHelper`](/docs/0.5.0/api/ferroui-controls/utils/struct-undoredohelper/) records and restores.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/utils/undo_redo_helper.rs#L6)

## Members

- [`undo_redo_state`](#function-undo_redo_state)
- [`set_undo_redo_state`](#function-set_undo_redo_state)
- [`on_undo_stack_changed`](#function-on_undo_stack_changed)
- [`on_redo_stack_changed`](#function-on_redo_stack_changed)

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

### undo_redo_state

```rust
fn undo_redo_state(self: &Self) -> TState
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/utils/undo_redo_helper.rs#L7)

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

### set_undo_redo_state

```rust
fn set_undo_redo_state(self: &Self, value: TState)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/utils/undo_redo_helper.rs#L9)

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

### on_undo_stack_changed

```rust
fn on_undo_stack_changed(self: &Self)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/utils/undo_redo_helper.rs#L11)

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

### on_redo_stack_changed

```rust
fn on_redo_stack_changed(self: &Self)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/utils/undo_redo_helper.rs#L13)

## Availability

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