CoreItemAnimation

Trait CoreItemAnimation 

Source
pub trait CoreItemAnimation {
    // Required methods
    fn anim_info(&self) -> &AnimationInfo;
    fn anim_name(&self) -> &str;
    fn eval_alpha_dyn(&self, alpha: f64) -> DynItem;
    fn eval_alpha_core_item(&self, alpha: f64) -> Vec<CoreItem>;

    // Provided methods
    fn eval_global_sec_dyn(&self, sec: f64) -> Option<DynItem> { ... }
    fn eval_global_sec_core_item(&self, sec: f64) -> Option<Vec<CoreItem>> { ... }
}
Expand description

Animation of core items.

Required Methods§

Source

fn anim_info(&self) -> &AnimationInfo

Get the animation info

Source

fn anim_name(&self) -> &str

Get the name of the animation

Source

fn eval_alpha_dyn(&self, alpha: f64) -> DynItem

Evaluate to DynItem

Source

fn eval_alpha_core_item(&self, alpha: f64) -> Vec<CoreItem>

Evaluate to CoreItems

Provided Methods§

Source

fn eval_global_sec_dyn(&self, sec: f64) -> Option<DynItem>

Evaluate to DynItem at global sec

Source

fn eval_global_sec_core_item(&self, sec: f64) -> Option<Vec<CoreItem>>

Evaluate to CoreItems at global sec

Implementors§