# InteractionTrackerInertiaRestingValue

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

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

```rust
struct InteractionTrackerInertiaRestingValue
```

An inertia modifier that changes where the inertia comes to rest
(`InteractionTrackerInertiaRestingValue`): when `Condition` is `true`,
the axis comes to rest at the value of `RestingValue`, evaluated once
when the inertia starts.

Both expressions read the tracker as `this.Target`
(`this.Target.NaturalRestingPosition.X`, `this.Target.Position`, ...).

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

## Members

- [`create`](#function-create)
- [`compositor`](#function-compositor)
- [`condition`](#function-condition)
- [`set_condition`](#function-set_condition)
- [`resting_value`](#function-resting_value)
- [`set_resting_value`](#function-set_resting_value)

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

### create

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

`InteractionTrackerInertiaRestingValue.Create(compositor)`.

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

<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#L76)

<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#L82)

<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#L86)

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

### resting_value

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

The expression of the resting value of the axis: a scalar
expression.

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

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

### set_resting_value

```rust
fn set_resting_value(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#L96)

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