pub struct AnimatedList {
pub stagger_delay: f32,
pub animation_duration: f32,
/* private fields */
}Expand description
Animated list manager
Tracks animation state for multiple items with staggered entry/exit.
Fields§
§stagger_delay: f32Stagger delay between items (seconds)
animation_duration: f32Animation duration per item (seconds)
Implementations§
Source§impl AnimatedList
impl AnimatedList
Sourcepub fn with_stagger_delay(self, delay: f32) -> Self
pub fn with_stagger_delay(self, delay: f32) -> Self
Set stagger delay between items
Sourcepub fn with_duration(self, duration: f32) -> Self
pub fn with_duration(self, duration: f32) -> Self
Set animation duration per item
Sourcepub fn set_item_count(&mut self, new_count: usize, current_time: f64)
pub fn set_item_count(&mut self, new_count: usize, current_time: f64)
Update item count (triggers entry/exit animations as needed)
Sourcepub fn get_item_state(&self, index: usize) -> Option<ItemState>
pub fn get_item_state(&self, index: usize) -> Option<ItemState>
Get animation state for item at index
Sourcepub fn item_states(&self) -> impl Iterator<Item = (usize, ItemState)> + '_
pub fn item_states(&self) -> impl Iterator<Item = (usize, ItemState)> + '_
Get all item states
Sourcepub fn is_animating(&self) -> bool
pub fn is_animating(&self) -> bool
Check if any animations are in progress
Sourcepub fn animate_in(&mut self, current_time: f64)
pub fn animate_in(&mut self, current_time: f64)
Trigger entry animation for all items
Sourcepub fn animate_out(&mut self, current_time: f64)
pub fn animate_out(&mut self, current_time: f64)
Trigger exit animation for all items
Trait Implementations§
Source§impl Clone for AnimatedList
impl Clone for AnimatedList
Source§fn clone(&self) -> AnimatedList
fn clone(&self) -> AnimatedList
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AnimatedList
impl Debug for AnimatedList
Auto Trait Implementations§
impl Freeze for AnimatedList
impl RefUnwindSafe for AnimatedList
impl Send for AnimatedList
impl Sync for AnimatedList
impl Unpin for AnimatedList
impl UnsafeUnpin for AnimatedList
impl UnwindSafe for AnimatedList
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