[−][src]Struct texture_packer::TexturePacker
Methods
impl<'a, Pix: Pixel, T: 'a + Clone + Texture<Pixel = Pix>> TexturePacker<'a, T, SkylinePacker<Pix>>
[src]
impl<'a, Pix: Pixel, T: 'a + Clone + Texture<Pixel = Pix>> TexturePacker<'a, T, SkylinePacker<Pix>>
pub fn new_skyline( | [src] |
impl<'a, Pix: Pixel, P: Packer<Pixel = Pix>, T: Clone + Texture<Pixel = Pix>> TexturePacker<'a, T, P>
[src]
impl<'a, Pix: Pixel, P: Packer<Pixel = Pix>, T: Clone + Texture<Pixel = Pix>> TexturePacker<'a, T, P>
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]
impl<'a, Pix, P, T: Clone> Texture for TexturePacker<'a, T, P> where
Pix: Pixel,
P: Packer<Pixel = Pix>,
T: Texture<Pixel = Pix>,
type Pixel = Pix
fn width(&self) -> u32 | [src] |
fn height(&self) -> u32 | [src] |
fn get(&self, x: u32, y: u32) -> Option<Pix> | [src] |
fn set(&mut self, _x: u32, _y: u32, _val: Pix) | [src] |
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> 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,
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]
impl<P, I> Texture for I where
I: GenericImage<Pixel = P>,
P: Pixel + Pixel,
type Pixel = <I as GenericImageView>::Pixel
fn width(&Self) -> u32 | [src] |
fn height(&Self) -> u32 | [src] |
fn get(&Self, u32, u32) -> Option<<I as GenericImageView>::Pixel> | [src] |
fn set(&mut Self, u32, u32, <I as GenericImageView>::Pixel) | [src] |
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> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error> | [src] |
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T | [src] |
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error> | [src] |
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId | [src] |