pub enum InteractionTrackerAnimation {
Vector3KeyFrame(Rc<Vector3KeyFrameAnimation>),
ScalarKeyFrame(Rc<ScalarKeyFrameAnimation>),
Expression(Rc<ExpressionAnimation>),
}Expand description
A custom animation of the position or of the scale of a tracker: the
CompositionAnimation that TryUpdatePositionWithAnimation and
TryUpdateScaleWithAnimation take.
Deviation (winui-composition.md): the tracker runs on the UI thread, so it evaluates the animation itself rather than on the server: key frames (value and expression key frames, easing, delay, iterations, direction) and expressions. Reference parameters of these animations that are property sets (or trackers) are read; references to other composition objects read as missing, because their values live on the server.
Variants§
Vector3KeyFrame(Rc<Vector3KeyFrameAnimation>)
A key frame animation of the position.
ScalarKeyFrame(Rc<ScalarKeyFrameAnimation>)
A key frame animation of the scale.
Expression(Rc<ExpressionAnimation>)
An expression of the position (Vector3) or of the scale (scalar),
evaluated every frame until another request or an interaction.
Trait Implementations§
Source§impl Clone for InteractionTrackerAnimation
impl Clone for InteractionTrackerAnimation
Source§impl From<Rc<ExpressionAnimation>> for InteractionTrackerAnimation
impl From<Rc<ExpressionAnimation>> for InteractionTrackerAnimation
Source§fn from(value: Rc<ExpressionAnimation>) -> Self
fn from(value: Rc<ExpressionAnimation>) -> Self
Source§impl From<Rc<ScalarKeyFrameAnimation>> for InteractionTrackerAnimation
impl From<Rc<ScalarKeyFrameAnimation>> for InteractionTrackerAnimation
Source§fn from(value: Rc<ScalarKeyFrameAnimation>) -> Self
fn from(value: Rc<ScalarKeyFrameAnimation>) -> Self
Source§impl From<Rc<Vector3KeyFrameAnimation>> for InteractionTrackerAnimation
impl From<Rc<Vector3KeyFrameAnimation>> for InteractionTrackerAnimation
Source§fn from(value: Rc<Vector3KeyFrameAnimation>) -> Self
fn from(value: Rc<Vector3KeyFrameAnimation>) -> Self
Auto Trait Implementations§
impl !RefUnwindSafe for InteractionTrackerAnimation
impl !Send for InteractionTrackerAnimation
impl !Sync for InteractionTrackerAnimation
impl !UnwindSafe for InteractionTrackerAnimation
impl Freeze for InteractionTrackerAnimation
impl Unpin for InteractionTrackerAnimation
impl UnsafeUnpin for InteractionTrackerAnimation
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
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
affects_render, metadata
overrides). Read more