# PreviewPrototypeView

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

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

```rust
struct PreviewPrototypeView
```



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

## Members

- [`new`](#function-new)
- [`control`](#function-control)
- [`on_action`](#function-on_action)
- [`show_error`](#function-show_error)
- [`selected_flow`](#function-selected_flow)
- [`set_query`](#function-set_query)
- [`select_flow`](#function-select_flow)
- [`update`](#function-update)

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

### new

```rust
fn new(_palette: &Control) -> Rc<Self>
```



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

<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_view.rs#L245)

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

### on_action

```rust
fn on_action(self: &Self, callback: impl Fn(PreviewPrototypeViewAction, u64, Ref<Control>) -> Result<(), String> + 'static)
```



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

<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_view.rs#L254)

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

### selected_flow

```rust
fn selected_flow(self: &Self) -> Option<usize>
```



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

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

### set_query

```rust
fn set_query(self: &Self, query: &str)
```



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

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

### select_flow

```rust
fn select_flow(self: &Self, index: Option<usize>)
```



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

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

### update

```rust
fn update(self: &Rc<Self>, prototype: &PreviewPrototype, stages: &[PreviewStageInfo], epoch: u64)
```



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

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

## Availability

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