pub struct AnimationState { /* private fields */ }
Implementations§
Source§impl AnimationState
impl AnimationState
pub fn new(data: &AnimationStateData) -> AnimationState
pub fn update(&mut self, delta: f32)
pub fn clear_track(&self, track: TrackIndex)
pub fn clear(&self)
pub fn set( &mut self, animation: &Animation<'_>, track_index: TrackIndex, do_loop: bool, )
pub fn set_by_name( &mut self, animation_name: &str, track_index: TrackIndex, do_loop: bool, )
pub fn apply(&self, skeleton: &mut Skeleton) -> bool
Auto Trait Implementations§
impl Freeze for AnimationState
impl RefUnwindSafe for AnimationState
impl !Send for AnimationState
impl !Sync for AnimationState
impl Unpin for AnimationState
impl UnwindSafe for AnimationState
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