# InteractionTrackerInertiaMotion

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

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

```rust
struct InteractionTrackerInertiaMotion
```

An inertia modifier that replaces the motion of the inertia
(`InteractionTrackerInertiaMotion`): when `Condition` is `true`, the
value of the axis is the value of `Motion`, evaluated every frame of the
inertia, until it stops changing.

Deviation (winui-composition.md): WinUI does not document what the value
of `Motion` is; here it is the value of the axis for the frame (a
position for the position axes, a scale for the scale axis).

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/interactions/interaction_tracker_inertia_modifier.rs#L109)

## Members

- [`create`](#function-create)
- [`compositor`](#function-compositor)
- [`condition`](#function-condition)
- [`set_condition`](#function-set_condition)
- [`motion`](#function-motion)
- [`set_motion`](#function-set_motion)

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

### create

```rust
fn create(compositor: &Rc<Compositor>) -> Rc<InteractionTrackerInertiaMotion>
```

`InteractionTrackerInertiaMotion.Create(compositor)`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/interactions/interaction_tracker_inertia_modifier.rs#L117)

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

### compositor

```rust
fn compositor(self: &Self) -> &Rc<Compositor>
```

The compositor of the modifier.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/interactions/interaction_tracker_inertia_modifier.rs#L126)

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

### condition

```rust
fn condition(self: &Self) -> Option<Rc<ExpressionAnimation>>
```

The expression that decides whether the modifier applies: a
boolean expression.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/interactions/interaction_tracker_inertia_modifier.rs#L132)

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

### set_condition

```rust
fn set_condition(self: &Self, value: Option<Rc<ExpressionAnimation>>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/interactions/interaction_tracker_inertia_modifier.rs#L136)

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

### motion

```rust
fn motion(self: &Self) -> Option<Rc<ExpressionAnimation>>
```

The expression of the motion: a scalar expression.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/interactions/interaction_tracker_inertia_modifier.rs#L141)

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

### set_motion

```rust
fn set_motion(self: &Self, value: Option<Rc<ExpressionAnimation>>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/interactions/interaction_tracker_inertia_modifier.rs#L145)

## 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>`
- `Any`
- `ErasedDestructor`
- `IntoEither`

## Availability

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