pub enum InteractionTrackerInertiaModifier {
RestingValue(Rc<InteractionTrackerInertiaRestingValue>),
Motion(Rc<InteractionTrackerInertiaMotion>),
}Expand description
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.
Variants§
RestingValue(Rc<InteractionTrackerInertiaRestingValue>)
InteractionTrackerInertiaRestingValue: replaces the resting value.
Motion(Rc<InteractionTrackerInertiaMotion>)
InteractionTrackerInertiaMotion: replaces the motion.
Implementations§
Source§impl InteractionTrackerInertiaModifier
impl InteractionTrackerInertiaModifier
Sourcepub fn condition(&self) -> Option<Rc<ExpressionAnimation>>
pub fn condition(&self) -> Option<Rc<ExpressionAnimation>>
The condition of the modifier.
Trait Implementations§
Source§impl From<Rc<InteractionTrackerInertiaMotion>> for InteractionTrackerInertiaModifier
impl From<Rc<InteractionTrackerInertiaMotion>> for InteractionTrackerInertiaModifier
Source§fn from(value: Rc<InteractionTrackerInertiaMotion>) -> Self
fn from(value: Rc<InteractionTrackerInertiaMotion>) -> Self
Converts to this type from the input type.
Source§impl From<Rc<InteractionTrackerInertiaRestingValue>> for InteractionTrackerInertiaModifier
impl From<Rc<InteractionTrackerInertiaRestingValue>> for InteractionTrackerInertiaModifier
Source§fn from(value: Rc<InteractionTrackerInertiaRestingValue>) -> Self
fn from(value: Rc<InteractionTrackerInertiaRestingValue>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for InteractionTrackerInertiaModifier
impl !Send for InteractionTrackerInertiaModifier
impl !Sync for InteractionTrackerInertiaModifier
impl !UnwindSafe for InteractionTrackerInertiaModifier
impl Freeze for InteractionTrackerInertiaModifier
impl Unpin for InteractionTrackerInertiaModifier
impl UnsafeUnpin for InteractionTrackerInertiaModifier
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more