pub struct AnimationFrame {
pub column: u32,
pub row: u32,
pub duration: f32,
pub event: Option<String>,
}Expand description
A single frame in an animation.
Fields§
§column: u32Column index in the sprite sheet.
row: u32Row index in the sprite sheet.
duration: f32Duration of this specific frame in seconds. If 0.0, uses the animation’s default timing.
event: Option<String>Optional event to trigger when this frame is first shown.
Trait Implementations§
Source§impl Clone for AnimationFrame
impl Clone for AnimationFrame
Source§fn clone(&self) -> AnimationFrame
fn clone(&self) -> AnimationFrame
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AnimationFrame
impl RefUnwindSafe for AnimationFrame
impl Send for AnimationFrame
impl Sync for AnimationFrame
impl Unpin for AnimationFrame
impl UnsafeUnpin for AnimationFrame
impl UnwindSafe for AnimationFrame
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