pub struct Frame {
pub name: String,
pub x: u32,
pub y: u32,
pub w: u32,
pub h: u32,
}Expand description
Where a sprite landed in the atlas.
Fields§
§name: StringSprite name (matches Sprite::name).
x: u32Left edge in the atlas (pixels).
y: u32Top edge in the atlas (pixels).
w: u32Width in pixels.
h: u32Height in 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