[][src]Struct ngen::assets::Bitmap

pub struct Bitmap {
    pub width: f32,
    pub height: f32,
    // some fields omitted
}

Fields

width: f32height: f32

Implementations

impl Bitmap[src]

pub const fn dim(&self) -> Vec2[src]

pub fn get_sprite(
    &self,
    Vec2 { x: x, y: y }: Vec2,
    Vec2 { x: width, y: height }: Vec2
) -> Sprite
[src]

pub fn as_tiled(self, tiles_per_x: u32, tiles_per_y: u32) -> TiledBitmap[src]

Trait Implementations

impl Clone for Bitmap[src]

impl Copy for Bitmap[src]

impl Debug for Bitmap[src]

Auto Trait Implementations

impl RefUnwindSafe for Bitmap

impl Send for Bitmap

impl Sync for Bitmap

impl Unpin for Bitmap

impl UnwindSafe for Bitmap

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.