Trait freya::hooks::AnimatedValue

source ·
pub trait AnimatedValue {
    // Required methods
    fn time(&self) -> Duration;
    fn as_f32(&self) -> f32;
    fn as_string(&self) -> String;
    fn prepare(&mut self, direction: AnimDirection);
    fn is_finished(&self, index: u128, direction: AnimDirection) -> bool;
    fn advance(&mut self, index: u128, direction: AnimDirection);
}

Required Methods§

source

fn time(&self) -> Duration

source

fn as_f32(&self) -> f32

source

fn as_string(&self) -> String

source

fn prepare(&mut self, direction: AnimDirection)

source

fn is_finished(&self, index: u128, direction: AnimDirection) -> bool

source

fn advance(&mut self, index: u128, direction: AnimDirection)

Implementors§