#[repr(C)]pub struct ZombieFrame {
pub translate_x: f32,
pub translate_y: f32,
pub opacity: f32,
pub width: OptionF32,
pub clip_to_frozen_rect: bool,
}Expand description
One frame of a native presence animation, returned by a the zombie animation callback. Absolute values, not deltas.
Fields§
§translate_x: f32Translation in logical px, applied about the node’s origin.
translate_y: f32§opacity: f320.0 skips the node entirely this frame.
width: OptionF32Absolute painted width in logical px (left-anchored narrowing for
exits; the live layout already owns the vacated space). None keeps
the full width. Ignored for enters (live width is layout’s job).
clip_to_frozen_rect: boolClip the exit to its frozen rect so the motion cannot paint over neighbouring components. Ignored for enters.
Trait Implementations§
Source§impl Clone for ZombieFrame
impl Clone for ZombieFrame
Source§fn clone(&self) -> ZombieFrame
fn clone(&self) -> ZombieFrame
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ZombieFrame
Source§impl Debug for ZombieFrame
impl Debug for ZombieFrame
Source§impl Default for ZombieFrame
impl Default for ZombieFrame
Source§impl PartialEq for ZombieFrame
impl PartialEq for ZombieFrame
impl StructuralPartialEq for ZombieFrame
Auto Trait Implementations§
impl Freeze for ZombieFrame
impl RefUnwindSafe for ZombieFrame
impl Send for ZombieFrame
impl Sync for ZombieFrame
impl Unpin for ZombieFrame
impl UnsafeUnpin for ZombieFrame
impl UnwindSafe for ZombieFrame
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