pub struct Animation { /* private fields */ }
Implementations§
Source§impl Animation
impl Animation
pub fn new() -> Animation
pub fn apply_translation_x( &mut self, from_value: i32, to_value: i32, time: f32, easing: EasingFunction, )
pub fn apply_translation_y( &mut self, from_value: i32, to_value: i32, time: f32, easing: EasingFunction, )
pub fn apply_rotation( &mut self, from_value: i32, to_value: i32, time: f32, easing: EasingFunction, )
pub fn apply_scale( &mut self, from_value: f32, to_value: f32, time: f32, easing: EasingFunction, )
pub fn run(&mut self, actor: &mut Actor)
Auto Trait Implementations§
impl Freeze for Animation
impl RefUnwindSafe for Animation
impl Send for Animation
impl Sync for Animation
impl Unpin for Animation
impl UnwindSafe for Animation
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