Struct rusty_spine::Animation
source · pub struct Animation { /* private fields */ }
Expand description
Stores timelines for animating a skeleton.
Implementations§
source§impl Animation
impl Animation
sourcepub fn name(&self) -> &str
pub fn name(&self) -> &str
The animation’s name, which is unique across all animations in the skeleton.
sourcepub fn duration(&self) -> f32
pub fn duration(&self) -> f32
The duration of the animation in seconds, which is usually the highest time of all frames in the timeline. The duration is used to know when it has completed and when it should loop back to the start.
sourcepub const fn c_ptr(&self) -> *mut spAnimation
pub const fn c_ptr(&self) -> *mut spAnimation
Get a pointer to the underlying spine-c
type.
Trait Implementations§
source§impl NewFromPtr<spAnimation> for Animation
impl NewFromPtr<spAnimation> for Animation
unsafe fn new_from_ptr(c_animation: *mut spAnimation) -> Self
Auto Trait Implementations§
impl Freeze for Animation
impl RefUnwindSafe for Animation
impl Send for Animation
impl Sync for Animation
impl Unpin for Animation
impl UnwindSafe for Animation
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