pub struct Vector3KeyFrameAnimation(/* private fields */);Expand description
A key-frame animation that interpolates a Vector3 property (such as a
visual’s Scale) through a series of key frames.
Implementations§
Source§impl Vector3KeyFrameAnimation
impl Vector3KeyFrameAnimation
Sourcepub fn insert_key_frame(&self, progress: f32, value: Vector3)
pub fn insert_key_frame(&self, progress: f32, value: Vector3)
Inserts a key frame at progress (in 0.0..=1.0) with the given value.
Sourcepub fn insert_key_frame_with_easing(
&self,
progress: f32,
value: Vector3,
easing: &CompositionEasingFunction,
)
pub fn insert_key_frame_with_easing( &self, progress: f32, value: Vector3, easing: &CompositionEasingFunction, )
Inserts a key frame at progress that eases to value along easing.
Sourcepub fn insert_expression_key_frame_with_easing(
&self,
progress: f32,
expression: &str,
easing: &CompositionEasingFunction,
)
pub fn insert_expression_key_frame_with_easing( &self, progress: f32, expression: &str, easing: &CompositionEasingFunction, )
Inserts a key frame at progress whose value is the composition
expression (for example "this.FinalValue"), eased along easing.
Sourcepub fn set_duration(&self, duration: Duration)
pub fn set_duration(&self, duration: Duration)
Sets how long one iteration of the animation takes.
Sourcepub fn set_target(&self, target: &str)
pub fn set_target(&self, target: &str)
Sets the property this animation targets when used as an implicit
animation (for example "Scale").
Sourcepub fn set_iteration_count(&self, count: i32)
pub fn set_iteration_count(&self, count: i32)
Sets the animation to run for a fixed number of iterations.
Sourcepub fn set_iterate_forever(&self)
pub fn set_iterate_forever(&self)
Sets the animation to repeat forever.
Trait Implementations§
Source§impl Animation for Vector3KeyFrameAnimation
impl Animation for Vector3KeyFrameAnimation
Source§fn as_animation(&self) -> CompositionAnimation
fn as_animation(&self) -> CompositionAnimation
Returns this animation as the shared
CompositionAnimation base type.Source§impl Clone for Vector3KeyFrameAnimation
impl Clone for Vector3KeyFrameAnimation
Source§fn clone(&self) -> Vector3KeyFrameAnimation
fn clone(&self) -> Vector3KeyFrameAnimation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for Vector3KeyFrameAnimation
impl RefUnwindSafe for Vector3KeyFrameAnimation
impl Send for Vector3KeyFrameAnimation
impl Sync for Vector3KeyFrameAnimation
impl Unpin for Vector3KeyFrameAnimation
impl UnsafeUnpin for Vector3KeyFrameAnimation
impl UnwindSafe for Vector3KeyFrameAnimation
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