[−][src]Struct texture_packer::TexturePacker
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]
config: TexturePackerConfig
) -> TexturePacker<'a, T, SkylinePacker<Pix>>
impl<'a, Pix: Pixel, P: Packer<Pixel = Pix>, T: Clone + Texture<Pixel = Pix>> TexturePacker<'a, T, P>
[src]
pub fn can_pack(&self, texture: &'a T) -> bool
[src]
pub fn pack_ref(&mut self, key: String, texture: &'a T) -> Result<(), PackError>
[src]
pub fn pack_own(&mut self, key: String, texture: T) -> Result<(), PackError>
[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]
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> RefUnwindSafe for TexturePacker<'a, T, P> where
P: RefUnwindSafe,
T: RefUnwindSafe,
P: RefUnwindSafe,
T: RefUnwindSafe,
impl<'a, T, P> Send for TexturePacker<'a, T, P> where
P: Send,
T: Send + Sync,
P: Send,
T: Send + Sync,
impl<'a, T, P> Sync for TexturePacker<'a, T, P> where
P: Sync,
T: Sync,
P: Sync,
T: Sync,
impl<'a, T, P> Unpin for TexturePacker<'a, T, P> where
P: Unpin,
T: Unpin,
P: Unpin,
T: Unpin,
impl<'a, T, P> UnwindSafe for TexturePacker<'a, T, P> where
P: UnwindSafe,
T: RefUnwindSafe + UnwindSafe,
P: UnwindSafe,
T: RefUnwindSafe + UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<P, I> Texture for I where
I: GenericImage<Pixel = P>,
P: Pixel + Pixel,
[src]
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, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,