pub struct InteractionTrackerInertiaRestingValue { /* private fields */ }Expand description
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, …).
Implementations§
Source§impl InteractionTrackerInertiaRestingValue
impl InteractionTrackerInertiaRestingValue
Sourcepub fn create(
compositor: &Rc<Compositor>,
) -> Rc<InteractionTrackerInertiaRestingValue>
pub fn create( compositor: &Rc<Compositor>, ) -> Rc<InteractionTrackerInertiaRestingValue>
InteractionTrackerInertiaRestingValue.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 resting_value(&self) -> Option<Rc<ExpressionAnimation>>
pub fn resting_value(&self) -> Option<Rc<ExpressionAnimation>>
The expression of the resting value of the axis: a scalar expression.
pub fn set_resting_value(&self, value: Option<Rc<ExpressionAnimation>>)
Auto Trait Implementations§
impl !Freeze for InteractionTrackerInertiaRestingValue
impl !RefUnwindSafe for InteractionTrackerInertiaRestingValue
impl !Send for InteractionTrackerInertiaRestingValue
impl !Sync for InteractionTrackerInertiaRestingValue
impl !UnwindSafe for InteractionTrackerInertiaRestingValue
impl Unpin for InteractionTrackerInertiaRestingValue
impl UnsafeUnpin for InteractionTrackerInertiaRestingValue
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