[−][src]Struct sixtyfps_corelib::animations::AnimationDriver
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
impl !RefUnwindSafe for AnimationDriver
impl Send for AnimationDriver
impl !Sync for AnimationDriver
impl Unpin for AnimationDriver
impl UnwindSafe for AnimationDriver
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,