# Player

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

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

```rust
struct Player
```

Clock-free playback controller. The host supplies measured elapsed time, making seeks and
tests independent of frame rate. No timer/thread is created by this crate.

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

## Members

- [`new`](#function-new)
- [`time`](#function-time)
- [`is_playing`](#function-is_playing)
- [`play`](#function-play)
- [`pause`](#function-pause)
- [`stop`](#function-stop)
- [`seek`](#function-seek)
- [`advance_with_visibility`](#function-advance_with_visibility)
- [`advance`](#function-advance)

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

### new

```rust
fn new() -> Self
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Animation/timeline.rs#L545)

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

### time

```rust
fn time(self: &Self) -> f64
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Animation/timeline.rs#L548)

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

### is_playing

```rust
fn is_playing(self: &Self) -> bool
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Animation/timeline.rs#L551)

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

### play

```rust
fn play(self: &mut Self)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Animation/timeline.rs#L554)

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

### pause

```rust
fn pause(self: &mut Self)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Animation/timeline.rs#L557)

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

### stop

```rust
fn stop(self: &mut Self)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Animation/timeline.rs#L560)

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

### seek

```rust
fn seek(self: &mut Self, time: f64) -> Result<()>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Animation/timeline.rs#L564)

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

### advance_with_visibility

```rust
fn advance_with_visibility(self: &mut Self, delta: f64, timeline: &Timeline, visible: bool, manually_started: bool) -> Result<Vec<Sample>>
```

Advance without charging hidden time to policies that pause when invisible.
This preserves the elapsed position and resumes without a catch-up jump.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Animation/timeline.rs#L574)

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

### advance

```rust
fn advance(self: &mut Self, delta: f64, timeline: &Timeline) -> Result<Vec<Sample>>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Animation/timeline.rs#L594)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- `Clone`
- `Debug`
- `Default`

## Availability

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