[][src]Struct spritec::config::Spritesheet

pub struct Spritesheet {
    pub path: UnresolvedPath,
    pub cell_width: NonZeroU32,
    pub cell_height: NonZeroU32,
    pub animations: Vec<Animation>,
    pub scale: NonZeroU32,
    pub background: Rgba,
}

Fields

path: UnresolvedPath

The path to output the generated spritesheet, relative to configuration file

cell_width: NonZeroU32

The width of each cell in the spritesheet in pixels

cell_height: NonZeroU32

The height of each cell in the spritesheet in pixels

animations: Vec<Animation>

Animations to include in the spritesheet

scale: NonZeroU32

A scale factor to apply to the generated images. Each image is scaled without interpolation. The value must be greater than zero. (default: 1).

background: Rgba

The background color of the spritesheet (default: transparent black)

Trait Implementations

impl Clone for Spritesheet[src]

impl Debug for Spritesheet[src]

impl<'de> Deserialize<'de> for Spritesheet[src]

impl Serialize for Spritesheet[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> SetParameter for T

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.