InteractionTrackerInertiaRestingValue
struct · ferroui-base · v0.5.0
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, ...).
Members
create
fn create(compositor: &Rc<Compositor>) -> Rc<InteractionTrackerInertiaRestingValue>
InteractionTrackerInertiaRestingValue.Create(compositor).
compositor
fn compositor(self: &Self) -> &Rc<Compositor>
The compositor of the modifier.
condition
fn condition(self: &Self) -> Option<Rc<ExpressionAnimation>>
The expression that decides whether the modifier applies: a boolean expression.
set_condition
fn set_condition(self: &Self, value: Option<Rc<ExpressionAnimation>>)
resting_value
fn resting_value(self: &Self) -> Option<Rc<ExpressionAnimation>>
The expression of the resting value of the axis: a scalar expression.
set_resting_value
fn set_resting_value(self: &Self, value: Option<Rc<ExpressionAnimation>>)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeClassDefaultsBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyErasedDestructorIntoEither
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.