pub struct Frame { /* private fields */ }Expand description
One frame of an Animation.
Implementations§
Source§impl Frame
impl Frame
Sourcepub fn sprite(&self) -> &str
pub fn sprite(&self) -> &str
The frame’s sprite before its flips: a sprite’s name, or a modifier chain such
as coin:swap(dusk), which Document::sprite finds too.
Sourcepub fn flip_x(&self) -> bool
pub fn flip_x(&self) -> bool
Whether the frame draws its sprite mirrored left to right. A chain’s trailing
flip_x (or rot180) sets it, rather than a flipped copy of the pixels.
Trait Implementations§
impl Eq for Frame
impl StructuralPartialEq for Frame
Auto Trait Implementations§
impl Freeze for Frame
impl RefUnwindSafe for Frame
impl Send for Frame
impl Sync for Frame
impl Unpin for Frame
impl UnsafeUnpin for Frame
impl UnwindSafe for Frame
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