pub struct AnimationFrameData {
pub runtime_seconds: f32,
pub origin: Rect,
pub destination: Rect,
pub opacity_start: f32,
pub opacity_end: f32,
pub builtin: Option<AnimationFrameResult>,
}Expand description
Data passed to animation hook methods describing the current frame.
Fields§
§runtime_seconds: f32Elapsed time since the animation started, 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.
builtin: Option<AnimationFrameResult>The frame that the configured built-in animation (e.g. slide) produces at
Self::runtime_seconds.
Return this unchanged from an animation hook to delegate the frame to the
built-in animation explicitly, or modify it first to build on top of it. It
also tells a plugin where the built-in animation is placing the window this
frame. None when the compositor does not provide it.
Auto Trait Implementations§
impl Freeze for AnimationFrameData
impl RefUnwindSafe for AnimationFrameData
impl Send for AnimationFrameData
impl Sync for AnimationFrameData
impl Unpin for AnimationFrameData
impl UnsafeUnpin 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