pub struct MotionFinished {
pub width_dp: f32,
pub height_dp: f32,
}Expand description
A node’s size motion came to rest: the size it settled at, in dp.
Delivered once for each change of size that runs to its end, after the last frame of the run, so a screen can wait for a collapse to finish before it takes the child out. A run that a newer target interrupts is not reported; the one that settles is. Under reduced motion the size changes in one frame and this arrives in that frame.
Fields§
§width_dp: f32§height_dp: f32Trait Implementations§
Source§impl Clone for MotionFinished
impl Clone for MotionFinished
impl Copy for MotionFinished
Source§impl Debug for MotionFinished
impl Debug for MotionFinished
Source§impl PartialEq for MotionFinished
impl PartialEq for MotionFinished
impl StructuralPartialEq for MotionFinished
Auto Trait Implementations§
impl Forget for MotionFinished
impl Freeze for MotionFinished
impl Move for MotionFinished
impl RefUnwindSafe for MotionFinished
impl Send for MotionFinished
impl Sync for MotionFinished
impl Unpin for MotionFinished
impl UnsafeUnpin for MotionFinished
impl UnwindSafe for MotionFinished
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