InteractionTrackerInertiaMotion
struct · ferroui-base · v0.5.0
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).
Members
create
fn create(compositor: &Rc<Compositor>) -> Rc<InteractionTrackerInertiaMotion>
InteractionTrackerInertiaMotion.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>>)
motion
fn motion(self: &Self) -> Option<Rc<ExpressionAnimation>>
The expression of the motion: a scalar expression.
set_motion
fn set_motion(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.