pub struct NaturalMotionAnimation { /* private fields */ }Expand description
The base of the natural motion animations (WinUI NaturalMotionAnimation):
the delay and the stop behavior.
Implementations§
Source§impl NaturalMotionAnimation
impl NaturalMotionAnimation
Sourcepub fn delay_behavior(&self) -> AnimationDelayBehavior
pub fn delay_behavior(&self) -> AnimationDelayBehavior
Whether the property takes the initial value before the delay
(SetInitialValueBeforeDelay) or when the motion starts.
pub fn set_delay_behavior(&self, value: AnimationDelayBehavior)
Sourcepub fn delay_time(&self) -> Duration
pub fn delay_time(&self) -> Duration
The delay between the start of the animation and the start of the motion.
pub fn set_delay_time(&self, value: Duration)
Sourcepub fn stop_behavior(&self) -> AnimationStopBehavior
pub fn stop_behavior(&self) -> AnimationStopBehavior
The value the property is set to when the animation is stopped with
StopAnimation.
pub fn set_stop_behavior(&self, value: AnimationStopBehavior)
Methods from Deref<Target = CompositionAnimation>§
Sourcepub fn object(&self) -> &CompositionObject
pub fn object(&self) -> &CompositionObject
The embedded CompositionObject.
Sourcepub fn compositor(&self) -> &Rc<Compositor>
pub fn compositor(&self) -> &Rc<Compositor>
The associated compositor.
Sourcepub fn clear_all_parameters(&self)
pub fn clear_all_parameters(&self)
Clears all of the parameters of the animation.
Sourcepub fn clear_parameter(&self, key: &str)
pub fn clear_parameter(&self, key: &str)
Clears a parameter from the animation.
Sourcepub fn set_boolean_parameter(&self, key: &str, value: bool)
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.
pub fn set_color_parameter(&self, key: &str, value: Color)
Sourcepub fn set_expression_reference_parameter(
&self,
key: &str,
animation_object: Rc<dyn AsCompositionObject>,
)
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.
pub fn set_matrix3x2_parameter(&self, key: &str, value: Matrix3x2)
pub fn set_matrix4x4_parameter(&self, key: &str, value: Matrix4x4)
pub fn set_quaternion_parameter(&self, key: &str, value: Quaternion)
pub fn set_reference_parameter( &self, key: &str, composition_object: Rc<dyn AsCompositionObject>, )
pub fn set_scalar_parameter(&self, key: &str, value: f32)
pub fn set_vector2_parameter(&self, key: &str, value: Vector2)
pub fn set_vector3_parameter(&self, key: &str, value: Vector3)
pub fn set_vector4_parameter(&self, key: &str, value: Vector4)
pub fn set_target(&self, value: Option<String>)
Sourcepub fn initial_value_expressions(&self) -> &InitialValueExpressionCollection
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 NaturalMotionAnimation
impl Deref for NaturalMotionAnimation
Source§type Target = CompositionAnimation
type Target = CompositionAnimation
Source§fn deref(&self) -> &CompositionAnimation
fn deref(&self) -> &CompositionAnimation
Auto Trait Implementations§
impl !Freeze for NaturalMotionAnimation
impl !RefUnwindSafe for NaturalMotionAnimation
impl !Send for NaturalMotionAnimation
impl !Sync for NaturalMotionAnimation
impl !UnwindSafe for NaturalMotionAnimation
impl Unpin for NaturalMotionAnimation
impl UnsafeUnpin for NaturalMotionAnimation
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