Struct tuix::AnimationState [−]
pub struct AnimationState<Prop> where
Prop: Interpolator, {Show 13 fields
pub indices: Vec<usize, Global>,
pub start_time: Instant,
pub duration: Duration,
pub delay: f32,
pub keyframes: Vec<(f32, Prop), Global>,
pub output: Option<Prop>,
pub persistent: bool,
pub t0: f32,
pub t: f32,
pub active: bool,
pub from_rule: usize,
pub to_rule: usize,
pub entities: Vec<Entity, Global>,
}
Fields
indices: Vec<usize, Global>
start_time: Instant
duration: Duration
delay: f32
keyframes: Vec<(f32, Prop), Global>
output: Option<Prop>
persistent: bool
t0: f32
t: f32
active: bool
from_rule: usize
to_rule: usize
entities: Vec<Entity, Global>
Implementations
impl<Prop> AnimationState<Prop> where
Prop: Interpolator,
impl<Prop> AnimationState<Prop> where
Prop: Interpolator,
pub fn new() -> AnimationState<Prop>
pub fn with_duration(self, duration: Duration) -> AnimationState<Prop>
pub fn with_delay(self, delay: Duration) -> AnimationState<Prop>
pub fn set_delay(&mut self, delay: Duration) -> &mut AnimationState<Prop>
pub fn with_keyframe(self, key: (f32, Prop)) -> AnimationState<Prop>
pub fn interpolate(&mut self, current_time: Instant) -> bool
pub fn set_persistent(self, flag: bool) -> AnimationState<Prop>
pub fn get_output(&self) -> Option<&Prop>
Trait Implementations
impl<Prop> Clone for AnimationState<Prop> where
Prop: Clone + Interpolator,
impl<Prop> Clone for AnimationState<Prop> where
Prop: Clone + Interpolator,
pub fn clone(&self) -> AnimationState<Prop>
pub fn clone(&self) -> AnimationState<Prop>
Returns a copy of the value. Read more
Performs copy-assignment from source
. Read more
impl<Prop> Debug for AnimationState<Prop> where
Prop: Debug + Interpolator,
impl<Prop> Debug for AnimationState<Prop> where
Prop: Debug + Interpolator,
impl<Prop> Default for AnimationState<Prop> where
Prop: Interpolator,
impl<Prop> Default for AnimationState<Prop> where
Prop: Interpolator,
pub fn default() -> AnimationState<Prop>
pub fn default() -> AnimationState<Prop>
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl<Prop> RefUnwindSafe for AnimationState<Prop> where
Prop: RefUnwindSafe,
impl<Prop> Send for AnimationState<Prop> where
Prop: Send,
impl<Prop> Sync for AnimationState<Prop> where
Prop: Sync,
impl<Prop> Unpin for AnimationState<Prop> where
Prop: Unpin,
impl<Prop> UnwindSafe for AnimationState<Prop> where
Prop: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more