pub struct AnimationPlayer<T = AnimationValue> { /* private fields */ }Implementations§
Source§impl<T> AnimationPlayer<T>
impl<T> AnimationPlayer<T>
pub fn new(timeline: Arc<CompiledTimeline<T>>) -> AnimationPlayer<T>
pub fn from_compiled(timeline: CompiledTimeline<T>) -> AnimationPlayer<T>
pub fn timeline(&self) -> &CompiledTimeline<T>
pub fn playback(&self) -> PlaybackState
pub fn playback_mut(&mut self) -> &mut PlaybackState
pub fn with_loop_mode(self, loop_mode: LoopMode) -> AnimationPlayer<T>
pub fn repeat(self) -> AnimationPlayer<T>
pub fn once(self) -> AnimationPlayer<T>
pub fn with_playback_rate(self, playback_rate: f64) -> AnimationPlayer<T>
pub fn play(&mut self)
pub fn pause(&mut self)
pub fn stop(&mut self)
pub fn seek(&mut self, time: f64)
Source§impl<T> AnimationPlayer<T>where
T: Copy + Interpolate,
impl<T> AnimationPlayer<T>where
T: Copy + Interpolate,
pub fn sample(&self) -> Vec<SampledAnimationValue<T>>
pub fn sample_into<'a>( &self, samples: &'a mut SampleBuffer<T>, ) -> SampleBatch<'a, T>
pub fn tick_into<'a>( &mut self, delta_seconds: f64, samples: &'a mut SampleBuffer<T>, ) -> AnimationTick<'a, T>
Trait Implementations§
Source§impl<T> Clone for AnimationPlayer<T>where
T: Clone,
impl<T> Clone for AnimationPlayer<T>where
T: Clone,
Source§fn clone(&self) -> AnimationPlayer<T>
fn clone(&self) -> AnimationPlayer<T>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T> Debug for AnimationPlayer<T>where
T: Debug,
impl<T> Debug for AnimationPlayer<T>where
T: Debug,
Source§impl<T> PartialEq for AnimationPlayer<T>where
T: PartialEq,
impl<T> PartialEq for AnimationPlayer<T>where
T: PartialEq,
impl<T> StructuralPartialEq for AnimationPlayer<T>where
T: PartialEq,
Auto Trait Implementations§
impl<T> Freeze for AnimationPlayer<T>
impl<T> RefUnwindSafe for AnimationPlayer<T>
impl<T> Send for AnimationPlayer<T>
impl<T> Sync for AnimationPlayer<T>
impl<T> Unpin for AnimationPlayer<T>
impl<T> UnsafeUnpin for AnimationPlayer<T>
impl<T> UnwindSafe for AnimationPlayer<T>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.