pub struct AnimationFrameData {
pub runtime_seconds: f32,
pub duration_seconds: f32,
pub origin: Rect,
pub destination: Rect,
pub opacity_start: f32,
pub opacity_end: f32,
}Expand description
Data passed to animation hook methods describing the current frame.
Fields§
§runtime_seconds: f32Elapsed time since the animation started, in seconds.
duration_seconds: f32Total requested duration of the animation, in seconds.
origin: RectThe starting rectangle of the window (position and size at animation start).
destination: RectThe target rectangle of the window (position and size at animation end).
opacity_start: f32The starting opacity of the window.
opacity_end: f32The target opacity of the window.
Auto Trait Implementations§
impl Freeze for AnimationFrameData
impl RefUnwindSafe for AnimationFrameData
impl Send for AnimationFrameData
impl Sync for AnimationFrameData
impl Unpin for AnimationFrameData
impl UnwindSafe for AnimationFrameData
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