pub struct AtlasClip { /* private fields */ }Expand description
A clip of a sprite, from a tag of its Aseprite export: frames of the
sprite shown one after another, looping or once. The facade makes a
Clip of each (Clips::add_atlas).
Implementations§
Source§impl AtlasClip
impl AtlasClip
Sourcepub fn is_looping(&self) -> bool
pub fn is_looping(&self) -> bool
Whether it starts again at its end; otherwise it stops on its last frame.
Sourcepub fn frames(&self) -> &[AtlasClipFrame]
pub fn frames(&self) -> &[AtlasClipFrame]
What it shows, in order: one at least.
Trait Implementations§
impl Eq for AtlasClip
impl StructuralPartialEq for AtlasClip
Auto Trait Implementations§
impl Forget for AtlasClip
impl Freeze for AtlasClip
impl Move for AtlasClip
impl RefUnwindSafe for AtlasClip
impl Send for AtlasClip
impl Sync for AtlasClip
impl Unpin for AtlasClip
impl UnsafeUnpin for AtlasClip
impl UnwindSafe for AtlasClip
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