[][src]Trait polyhorn_ui::animation::Animator

pub trait Animator {
    type AnimationHandle: AnimationHandle;
    pub fn start(&mut self, animation: Animation) -> Self::AnimationHandle;
}

This trait should be implemented by types that schedule animations for objects that can be animated.

Associated Types

type AnimationHandle: AnimationHandle[src]

This is the handle that this animator returns and that can be used to track pending animations.

Loading content...

Required methods

pub fn start(&mut self, animation: Animation) -> Self::AnimationHandle[src]

This function should start the given animation and return a handle that can be used to track and control its progress.

Loading content...

Implementors

Loading content...