pub struct SpriteAnimator { /* private fields */ }Expand description
Frame-rate-driven sprite animation clip state.
Implementations§
Source§impl SpriteAnimator
Playback stepping and current-frame queries for SpriteAnimator.
impl SpriteAnimator
Playback stepping and current-frame queries for SpriteAnimator.
Source§impl SpriteAnimator
impl SpriteAnimator
pub fn get_start_frame(&self) -> u32
pub fn get_mut_start_frame(&mut self) -> &mut u32
pub fn set_start_frame(&mut self, val: u32) -> &mut Self
pub fn get_frame_count(&self) -> u32
pub fn get_mut_frame_count(&mut self) -> &mut u32
pub fn set_frame_count(&mut self, val: u32) -> &mut Self
pub fn get_fps(&self) -> f32
pub fn get_mut_fps(&mut self) -> &mut f32
pub fn set_fps(&mut self, val: f32) -> &mut Self
pub fn get_looping(&self) -> bool
pub fn get_mut_looping(&mut self) -> &mut bool
pub fn set_looping(&mut self, val: bool) -> &mut Self
pub fn get_elapsed_secs(&self) -> f32
pub fn get_mut_elapsed_secs(&mut self) -> &mut f32
pub fn set_elapsed_secs(&mut self, val: f32) -> &mut Self
Trait Implementations§
Source§impl Clone for SpriteAnimator
impl Clone for SpriteAnimator
impl Copy for SpriteAnimator
Source§impl Debug for SpriteAnimator
impl Debug for SpriteAnimator
Source§impl PartialEq for SpriteAnimator
impl PartialEq for SpriteAnimator
impl StructuralPartialEq for SpriteAnimator
Auto Trait Implementations§
impl Forget for SpriteAnimator
impl Freeze for SpriteAnimator
impl Move for SpriteAnimator
impl RefUnwindSafe for SpriteAnimator
impl Send for SpriteAnimator
impl Sync for SpriteAnimator
impl Unpin for SpriteAnimator
impl UnsafeUnpin for SpriteAnimator
impl UnwindSafe for SpriteAnimator
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