InteractionTrackerInertiaModifier
enum · ferroui-base · v0.5.0
enum InteractionTrackerInertiaModifier
A modifier of the inertia of one axis of an interaction tracker
(InteractionTrackerInertiaModifier): what
configure_position_x_inertia_modifiers
and its siblings take.
When the tracker enters inertia it evaluates the conditions of the
modifiers of an axis in order; the first modifier whose condition is
true applies to the axis for the whole inertia.
Deviation (winui-composition.md): WinUI also has
InteractionTrackerInertiaNaturalMotion, which runs a
ScalarNaturalMotionAnimation; the natural motion animations are not
ported yet, so that subclass is missing.
Members
RestingValue
RestingValue(std::rc::Rc<InteractionTrackerInertiaRestingValue>)
InteractionTrackerInertiaRestingValue: replaces the resting value.
Motion
Motion(std::rc::Rc<InteractionTrackerInertiaMotion>)
InteractionTrackerInertiaMotion: replaces the motion.
condition
fn condition(self: &Self) -> Option<Rc<ExpressionAnimation>>
The condition of the modifier.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeClassDefaultsBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedErasedDestructorIntoEitherCloneFrom<Rc<InteractionTrackerInertiaRestingValue>>From<Rc<InteractionTrackerInertiaMotion>>
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.