Skip to main content

Vector2NaturalMotionAnimation

Struct Vector2NaturalMotionAnimation 

Source
pub struct Vector2NaturalMotionAnimation { /* private fields */ }
Expand description

A natural motion animation of Vector2 values (WinUI Vector2NaturalMotionAnimation): where the motion starts and ends, and its initial velocity.

Implementations§

Source§

impl Vector2NaturalMotionAnimation

Source

pub fn final_value(&self) -> Option<Vector2>

The value the motion comes to rest at. When None, an implicit animation moves to the new value of the property (this.FinalValue), and an explicit one to the current value.

Source

pub fn set_final_value(&self, value: Option<Vector2>)

Source

pub fn initial_value(&self) -> Option<Vector2>

The value the motion starts from; the current value of the property when None.

Source

pub fn set_initial_value(&self, value: Option<Vector2>)

Source

pub fn initial_velocity(&self) -> Vector2

The velocity the motion starts with, in units of the property per second.

Source

pub fn set_initial_velocity(&self, value: Vector2)

Methods from Deref<Target = NaturalMotionAnimation>§

Source

pub fn delay_behavior(&self) -> AnimationDelayBehavior

Whether the property takes the initial value before the delay (SetInitialValueBeforeDelay) or when the motion starts.

Source

pub fn set_delay_behavior(&self, value: AnimationDelayBehavior)

Source

pub fn delay_time(&self) -> Duration

The delay between the start of the animation and the start of the motion.

Source

pub fn set_delay_time(&self, value: Duration)

Source

pub fn stop_behavior(&self) -> AnimationStopBehavior

The value the property is set to when the animation is stopped with StopAnimation.

Source

pub fn set_stop_behavior(&self, value: AnimationStopBehavior)

Methods from Deref<Target = CompositionAnimation>§

Source

pub fn object(&self) -> &CompositionObject

The embedded CompositionObject.

Source

pub fn compositor(&self) -> &Rc<Compositor>

The associated compositor.

Source

pub fn clear_all_parameters(&self)

Clears all of the parameters of the animation.

Source

pub fn clear_parameter(&self, key: &str)

Clears a parameter from the animation.

Source

pub fn set_boolean_parameter(&self, key: &str, value: bool)

Sets a boolean value parameter for use with an expression animation or an expression key frame.

Source

pub fn set_color_parameter(&self, key: &str, value: Color)

Source

pub fn set_expression_reference_parameter( &self, key: &str, animation_object: Rc<dyn AsCompositionObject>, )

Sets an object as a reference parameter of an expression: the expression reads its properties (key.Offset) every time it is evaluated, as with set_reference_parameter.

Source

pub fn set_matrix3x2_parameter(&self, key: &str, value: Matrix3x2)

Source

pub fn set_matrix4x4_parameter(&self, key: &str, value: Matrix4x4)

Source

pub fn set_quaternion_parameter(&self, key: &str, value: Quaternion)

Source

pub fn set_reference_parameter( &self, key: &str, composition_object: Rc<dyn AsCompositionObject>, )

Source

pub fn set_scalar_parameter(&self, key: &str, value: f32)

Source

pub fn set_vector2_parameter(&self, key: &str, value: Vector2)

Source

pub fn set_vector3_parameter(&self, key: &str, value: Vector3)

Source

pub fn set_vector4_parameter(&self, key: &str, value: Vector4)

Source

pub fn target(&self) -> Option<String>

The name of the property the animation targets.

Source

pub fn set_target(&self, value: Option<String>)

Source

pub fn initial_value_expressions(&self) -> &InitialValueExpressionCollection

The initial values of the animation: for a property of the target object, the expression that gives the property its value when the animation starts.

Trait Implementations§

Source§

impl Deref for Vector2NaturalMotionAnimation

Source§

type Target = NaturalMotionAnimation

The resulting type after dereferencing.
Source§

fn deref(&self) -> &NaturalMotionAnimation

Dereferences the value.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> ClassDefaults for T
where T: ?Sized,

Source§

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
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.