pub struct SpriteSheet {
pub atlas: RasterBuf,
pub icons: HashMap<String, SpriteRect>,
}Expand description
A decoded sprite sheet: one atlas image plus a name → sub-rect index.
The runtime counterpart of a sprite source — the host builds it from
the atlas PNG and the (inline or fetched) index, and the icon node
crops named rects out of it.
Fields§
§atlas: RasterBuf§icons: HashMap<String, SpriteRect>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SpriteSheet
impl RefUnwindSafe for SpriteSheet
impl Send for SpriteSheet
impl Sync for SpriteSheet
impl Unpin for SpriteSheet
impl UnsafeUnpin for SpriteSheet
impl UnwindSafe for SpriteSheet
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