# PreviewPrototypePlayerView

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

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

```rust
struct PreviewPrototypePlayerView
```



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

## Members

- [`new`](#function-new)
- [`control`](#function-control)
- [`on_action`](#function-on_action)
- [`show_error`](#function-show_error)
- [`update`](#function-update)
- [`update_layers`](#function-update_layers)
- [`clear`](#function-clear)

<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_player.rs#L103)

<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_player.rs#L293)

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

### on_action

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



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

<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_player.rs#L303)

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

### update

```rust
fn update(self: &Rc<Self>, host: Ref<Control>, size: PreviewStageSize, title: &str, hotspots: &[PreviewPrototypeHotspot], can_back: bool, epoch: u64)
```



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

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

### update_layers

```rust
fn update_layers(self: &Rc<Self>, frame_size: PreviewStageSize, layers: &[PreviewPrototypePlayerLayer], title: &str, hotspots: &[PreviewPrototypeHotspot], can_back: bool, epoch: u64) -> Result<(), String>
```

Present a base screen and its modal overlays without rebuilding retained hosts.
Hotspots are local to the topmost layer. A rejected descriptor leaves the
accepted native presentation intact.

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

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

### clear

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

Retire all captured callback epochs before the host drops its playback graph.

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

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