Struct i_slint_core::animations::AnimationDriver
source · pub struct AnimationDriver { /* private fields */ }Expand description
The AnimationDriver
Implementations§
source§impl AnimationDriver
impl AnimationDriver
sourcepub fn update_animations(&self, new_tick: Instant)
pub fn update_animations(&self, new_tick: Instant)
Iterates through all animations based on the new time tick and updates their state. This should be called by the windowing system driver for every frame.
sourcepub fn has_active_animations(&self) -> bool
pub fn has_active_animations(&self) -> bool
Returns true if there are any active or ready animations. This is used by the windowing system to determine if a new animation frame is required or not. Returns false otherwise.
sourcepub fn set_has_active_animations(&self)
pub fn set_has_active_animations(&self)
Tell the driver that there are active animations
sourcepub fn current_tick(&self) -> Instant
pub fn current_tick(&self) -> Instant
The current instant that is to be used for animation using this function register the current binding as a dependency