[][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> Sync for TexturePacker<'a, T, P> where
    P: Sync,
    T: Sync

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

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

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

impl<'a, T, P> UnwindSafe for TexturePacker<'a, T, P> where
    P: UnwindSafe,
    T: RefUnwindSafe + UnwindSafe

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<T> for T[src]

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

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.

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

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

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