Struct texture_packer::texture::sub_texture::SubTexture [] [src]

pub struct SubTexture<'a, T: 'a + Clone> {
    // some fields omitted
}

Methods

impl<'a, T: Texture + Clone> SubTexture<'a, T>

fn new(texture: T, source: Rect) -> SubTexture<'a, T>

fn from_ref(texture: &'a T, source: Rect) -> SubTexture<'a, T>

Trait Implementations

impl<'a, T: Texture + Clone> Texture for SubTexture<'a, T>

type Pixel = T::Pixel

fn width(&self) -> u32

fn height(&self) -> u32

fn get(&self, x: u32, y: u32) -> Option<T::Pixel>

fn set(&mut self, x: u32, y: u32, val: T::Pixel)

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

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

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