[][src]Struct texture_packer::TexturePacker

pub struct TexturePacker<'a, T: 'a + Clone, P> { /* fields omitted */ }

Methods

impl<'a, Pix: Pixel, T: 'a + Clone + Texture<Pixel = Pix>> TexturePacker<'a, T, SkylinePacker<Pix>>
[src]

pub fn new_skyline(
    config: TexturePackerConfig
) -> TexturePacker<'a, T, SkylinePacker<Pix>>
[src]

impl<'a, Pix: Pixel, P: Packer<Pixel = Pix>, T: Clone + Texture<Pixel = Pix>> TexturePacker<'a, T, P>
[src]

pub fn pack_ref(&mut self, key: String, texture: &'a T)
[src]

pub fn pack_own(&mut self, key: String, texture: T)
[src]

pub fn get_frames(&self) -> &HashMap<String, Frame>
[src]

pub fn get_frame(&self, key: &str) -> Option<&Frame>
[src]

Trait Implementations

impl<'a, Pix, P, T: Clone> Texture for TexturePacker<'a, T, P> where
    Pix: Pixel,
    P: Packer<Pixel = Pix>,
    T: Texture<Pixel = Pix>, 
[src]

type Pixel = Pix

fn get_rotated(&self, x: u32, y: u32) -> Option<Self::Pixel>
[src]

fn is_column_transparent(&self, col: u32) -> bool
[src]

fn is_row_transparent(&self, row: u32) -> bool
[src]

Auto Trait Implementations

impl<'a, T, P> Send for TexturePacker<'a, T, P> where
    P: Send,
    T: Send + Sync

impl<'a, T, P> Sync for TexturePacker<'a, T, P> where
    P: Sync,
    T: Sync

Blanket Implementations

impl<P, I> Texture for I where
    I: GenericImage<Pixel = P>,
    P: Pixel + Pixel
[src]

type Pixel = <I as GenericImageView>::Pixel

fn get_rotated(&self, x: u32, y: u32) -> Option<Self::Pixel>
[src]

fn is_column_transparent(&self, col: u32) -> bool
[src]

fn is_row_transparent(&self, row: u32) -> bool
[src]

impl<T> From for T
[src]

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

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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