Enum quicksilver::graphics::AtlasItem [−][src]
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
Image(Image)
A still image frame
Animation(Vec<Image>)
A list of image frames in order
Methods
impl AtlasItem
[src]
impl AtlasItem
pub fn unwrap_image(self) -> Image
[src]
pub fn unwrap_image(self) -> Image
Unwrap the enum to a still frame, panicking if it is an animation
pub fn unwrap_animation(self) -> Vec<Image>
[src]
pub fn unwrap_animation(self) -> Vec<Image>
Unwrap the enum to an animationo, panicking if it is an image
Trait Implementations
impl Clone for AtlasItem
[src]
impl Clone for AtlasItem
fn clone(&self) -> AtlasItem
[src]
fn clone(&self) -> AtlasItem
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for AtlasItem
[src]
impl Debug for AtlasItem