Struct sixtyfps_corelib::animations::AnimationDriver[][src]

pub struct AnimationDriver { /* fields omitted */ }

The AnimationDriver

Implementations

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]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.