Enum quicksilver::graphics::AtlasItem[][src]

pub enum AtlasItem {
    Image(Image),
    Animation(Vec<Image>),
}

An individual named item of an Atlas

If there is only one frame / no index for an Atlas item, it will be an Image, otherwise, it will be an Animation.

Variants

A still image frame

A list of image frames in order

Methods

impl AtlasItem
[src]

Unwrap the enum to a still frame, panicking if it is an animation

Important traits for Vec<u8>

Unwrap the enum to an animationo, panicking if it is an image

Trait Implementations

impl Clone for AtlasItem
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for AtlasItem
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl !Send for AtlasItem

impl !Sync for AtlasItem