pub struct InteractionTrackerInertiaMotion { /* private fields */ }Expand description
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).
Implementations§
Source§impl InteractionTrackerInertiaMotion
impl InteractionTrackerInertiaMotion
Sourcepub fn create(
compositor: &Rc<Compositor>,
) -> Rc<InteractionTrackerInertiaMotion>
pub fn create( compositor: &Rc<Compositor>, ) -> Rc<InteractionTrackerInertiaMotion>
InteractionTrackerInertiaMotion.Create(compositor).
Sourcepub fn compositor(&self) -> &Rc<Compositor>
pub fn compositor(&self) -> &Rc<Compositor>
The compositor of the modifier.
Sourcepub fn condition(&self) -> Option<Rc<ExpressionAnimation>>
pub fn condition(&self) -> Option<Rc<ExpressionAnimation>>
The expression that decides whether the modifier applies: a boolean expression.
pub fn set_condition(&self, value: Option<Rc<ExpressionAnimation>>)
Sourcepub fn motion(&self) -> Option<Rc<ExpressionAnimation>>
pub fn motion(&self) -> Option<Rc<ExpressionAnimation>>
The expression of the motion: a scalar expression.
pub fn set_motion(&self, value: Option<Rc<ExpressionAnimation>>)
Auto Trait Implementations§
impl !Freeze for InteractionTrackerInertiaMotion
impl !RefUnwindSafe for InteractionTrackerInertiaMotion
impl !Send for InteractionTrackerInertiaMotion
impl !Sync for InteractionTrackerInertiaMotion
impl !UnwindSafe for InteractionTrackerInertiaMotion
impl Unpin for InteractionTrackerInertiaMotion
impl UnsafeUnpin for InteractionTrackerInertiaMotion
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