[][src]Struct texture_packer::TexturePackerConfig

pub struct TexturePackerConfig {
    pub max_width: u32,
    pub max_height: u32,
    pub allow_rotation: bool,
    pub border_padding: u32,
    pub texture_padding: u32,
    pub trim: bool,
    pub texture_outlines: bool,
}

Fields

max_width: u32

Max width of the packed image. Default value is 1024.

max_height: u32

Max height of the packed image. Default value is 1024.

allow_rotation: bool

True to allow rotation of the input images. Default value is true.

border_padding: u32

Size of the padding on the outer edge of the packed image in pixel. Default value is 0.

texture_padding: u32

Size of the padding between frames in pixel. Default value is 2

trim: bool

True to trim the empty pixels of the input images. Default value is true.

texture_outlines: bool

True to draw the red line on the edge of the each frames. Useful for debugging. Default value is false.

Trait Implementations

impl Clone for TexturePackerConfig[src]

impl Copy for TexturePackerConfig[src]

impl Debug for TexturePackerConfig[src]

impl Default for TexturePackerConfig[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> From<T> for T[src]

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

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.