pub struct AnimationFrameResult {
pub completed: bool,
pub area: Option<Rect>,
pub transform: Option<Mat4>,
pub opacity: Option<f32>,
}Expand description
Returned from animation hooks to describe the frame’s visual state.
Fields§
§completed: boolSet to true to signal that the animation is finished.
area: Option<Rect>Override the window’s rectangle for this frame. None leaves it unchanged.
transform: Option<Mat4>Override the window’s transform matrix for this frame. None leaves it unchanged.
opacity: Option<f32>Override the window’s opacity for this frame. None leaves it unchanged.
Auto Trait Implementations§
impl Freeze for AnimationFrameResult
impl RefUnwindSafe for AnimationFrameResult
impl Send for AnimationFrameResult
impl Sync for AnimationFrameResult
impl Unpin for AnimationFrameResult
impl UnwindSafe for AnimationFrameResult
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