pub struct FrameAnimation { /* private fields */ }
Implementations§
Source§impl FrameAnimation
impl FrameAnimation
pub fn new(config: FrameAnimationConfig) -> Self
pub fn update(&mut self, now: Millis)
pub fn is_done(&self) -> bool
pub fn is_playing(&self) -> bool
pub fn absolute_frame(&self) -> u16
pub fn relative_frame(&self) -> u16
pub fn play(&mut self, now: Millis)
pub fn play_repeat(&mut self, now: Millis)
Trait Implementations§
Source§impl AnimationLookup for FrameAnimation
impl AnimationLookup for FrameAnimation
Auto Trait Implementations§
impl Freeze for FrameAnimation
impl RefUnwindSafe for FrameAnimation
impl Send for FrameAnimation
impl Sync for FrameAnimation
impl Unpin for FrameAnimation
impl UnwindSafe for FrameAnimation
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