pub struct ItemState {
pub opacity: f32,
pub y_offset: f32,
pub scale: f32,
}Expand description
Animation state for a single list item
Fields§
§opacity: f32Opacity (0.0 = invisible, 1.0 = fully visible)
y_offset: f32Vertical offset in pixels (positive = down)
scale: f32Scale factor (1.0 = normal size)
Implementations§
Source§impl ItemState
impl ItemState
Sourcepub fn entry_start() -> Self
pub fn entry_start() -> Self
Create entry animation state (invisible, below, scaled down)
Trait Implementations§
impl Copy for ItemState
Auto Trait Implementations§
impl Freeze for ItemState
impl RefUnwindSafe for ItemState
impl Send for ItemState
impl Sync for ItemState
impl Unpin for ItemState
impl UnsafeUnpin for ItemState
impl UnwindSafe for ItemState
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