# NaturalMotionAnimation

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/rendering/composition/animations/struct-naturalmotionanimation/

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

```rust
struct NaturalMotionAnimation
```

The base of the natural motion animations (WinUI `NaturalMotionAnimation`):
the delay and the stop behavior.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/animations/natural_motion_animation.rs#L46)

## Members

- [`delay_behavior`](#function-delay_behavior)
- [`set_delay_behavior`](#function-set_delay_behavior)
- [`delay_time`](#function-delay_time)
- [`set_delay_time`](#function-set_delay_time)
- [`stop_behavior`](#function-stop_behavior)
- [`set_stop_behavior`](#function-set_stop_behavior)

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

### delay_behavior

```rust
fn delay_behavior(self: &Self) -> AnimationDelayBehavior
```

Whether the property takes the initial value before the delay
(`SetInitialValueBeforeDelay`) or when the motion starts.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/animations/natural_motion_animation.rs#L73)

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

### set_delay_behavior

```rust
fn set_delay_behavior(self: &Self, value: AnimationDelayBehavior)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/animations/natural_motion_animation.rs#L77)

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

### delay_time

```rust
fn delay_time(self: &Self) -> Duration
```

The delay between the start of the animation and the start of the
motion.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/animations/natural_motion_animation.rs#L83)

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

### set_delay_time

```rust
fn set_delay_time(self: &Self, value: Duration)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/animations/natural_motion_animation.rs#L87)

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

### stop_behavior

```rust
fn stop_behavior(self: &Self) -> AnimationStopBehavior
```

The value the property is set to when the animation is stopped with
`StopAnimation`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/animations/natural_motion_animation.rs#L93)

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

### set_stop_behavior

```rust
fn set_stop_behavior(self: &Self, value: AnimationStopBehavior)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/animations/natural_motion_animation.rs#L97)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- [`Receiver`](/docs/0.5.0/api/ferroui-system/task/oneshot/struct-receiver/)
- `Any`
- `ErasedDestructor`
- `IntoEither`
- `Deref`

## Availability

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