pub struct Animation {
pub id: u32,
pub window_id: u32,
pub property: AnimationProperty,
pub easing: EasingFunction,
pub duration_ms: u32,
pub elapsed_ms: u32,
pub completed: bool,
}Expand description
Active animation instance.
Fields§
§id: u32§window_id: u32§property: AnimationProperty§easing: EasingFunction§duration_ms: u32Total duration in milliseconds
elapsed_ms: u32Elapsed time in milliseconds
completed: boolWhether this animation has finished
Implementations§
Source§impl Animation
impl Animation
Sourcepub fn current_value(&self) -> i64
pub fn current_value(&self) -> i64
Compute the current interpolated value of this animation.
Returns the value as an i64 (covers both signed and unsigned properties).