#[non_exhaustive]pub struct Atlas {
pub states: Vec<StateSet>,
pub icon_sets: Vec<IconSet>,
pub image: Image,
pub padding: u32,
pub regions: Vec<Region>,
pub animations: Vec<AtlasAnimation>,
pub groups: Vec<Group>,
}Expand description
Every sprite of a document in one texture, and where each one is.
Sprites with identical pixels share one rectangle. Documents with themes also retain palette/key identity, so recoloring cannot change the packing.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.states: Vec<StateSet>§icon_sets: Vec<IconSet>§image: Image§padding: u32§regions: Vec<Region>Named sprites in the order defined, then animation frames’ sprites in the order first used.
animations: Vec<AtlasAnimation>§groups: Vec<Group>The groups, each naming sprites of regions.
Implementations§
Trait Implementations§
impl Eq for Atlas
impl StructuralPartialEq for Atlas
Auto Trait Implementations§
impl Freeze for Atlas
impl RefUnwindSafe for Atlas
impl Send for Atlas
impl Sync for Atlas
impl Unpin for Atlas
impl UnsafeUnpin for Atlas
impl UnwindSafe for Atlas
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