Struct sixtyfps_corelib::animations::AnimationDriver [−][src]
pub struct AnimationDriver { /* fields omitted */ }
The AnimationDriver
Implementations
impl AnimationDriver
[src]
impl AnimationDriver
[src]pub fn update_animations(&self, new_tick: Instant)
[src]
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.
pub fn has_active_animations(&self) -> bool
[src]
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.
pub fn set_has_active_animations(&self)
[src]
Tell the driver that there are active animations
pub fn current_tick(&self) -> Instant
[src]
The current instant that is to be used for animation using this function register the current binding as a dependency
Trait Implementations
impl Default for AnimationDriver
[src]
impl Default for AnimationDriver
[src]Auto Trait Implementations
impl !RefUnwindSafe for AnimationDriver
impl !RefUnwindSafe for AnimationDriver
impl Send for AnimationDriver
impl Send for AnimationDriver
impl !Sync for AnimationDriver
impl !Sync for AnimationDriver
impl Unpin for AnimationDriver
impl Unpin for AnimationDriver
impl UnwindSafe for AnimationDriver
impl UnwindSafe for AnimationDriver