pub struct Animation {
pub duration: f32,
pub timing_function: Option<EasingFunction>,
pub repeat_count: f32,
pub autoreverses: bool,
/* private fields */
}Fields§
§duration: f32§timing_function: Option<EasingFunction>§repeat_count: f32§autoreverses: boolImplementations§
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 apply_opacity( &mut self, from_value: f32, to_value: f32, time: f32, easing: EasingFunction, )
pub fn with_key_path(_key_path: &str) -> Animation
pub fn set_from_value_position_x(&mut self, value: i32)
pub fn set_to_value_position_x(&mut self, value: i32)
pub fn set_from_value_position_y(&mut self, value: i32)
pub fn set_to_value_position_y(&mut self, value: i32)
pub fn set_from_value_opacity(&mut self, value: f32)
pub fn set_to_value_opacity(&mut self, value: f32)
pub fn set_from_value_scale(&mut self, value: f32)
pub fn set_to_value_scale(&mut self, value: f32)
pub fn set_from_value_rotation(&mut self, value: i32)
pub fn set_to_value_rotation(&mut self, value: i32)
pub fn run(&mut self, layer: &mut RALayer)
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more