# PreviewPrototypeFlowEditor

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

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

```rust
struct PreviewPrototypeFlowEditor
```



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

## Members

- [`new`](#function-new)
- [`control`](#function-control)
- [`on_apply`](#function-on_apply)
- [`on_close`](#function-on_close)
- [`cancel`](#function-cancel)
- [`retire`](#function-retire)
- [`show_error`](#function-show_error)
- [`value`](#function-value)
- [`apply`](#function-apply)

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

### new

```rust
fn new(initial: Option<PreviewPrototypeFlow>, stages: Vec<PreviewStageInfo>) -> Rc<Self>
```



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

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

### control

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



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

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

### on_apply

```rust
fn on_apply(self: &Self, callback: impl Fn(PreviewPrototypeFlow) -> Result<(), String> + 'static)
```



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

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

### on_close

```rust
fn on_close(self: &Self, callback: impl Fn() -> () + 'static)
```



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

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

### cancel

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



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

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

### retire

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



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

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

### show_error

```rust
fn show_error(self: &Self, message: &str)
```



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

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

### value

```rust
fn value(self: &Self) -> Result<PreviewPrototypeFlow, String>
```



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

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

### apply

```rust
fn apply(self: &Self) -> Result<(), String>
```



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

## 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/).
