[][src]Struct thorium::dmg_render::DMGScreenblock

pub struct DMGScreenblock {
    pub entries: Vec<u8>,
}

Stores data for the background and/or window layout

Fields

entries: Vec<u8>

Indexes into the tile memory (details depend on the config).

Methods

impl DMGScreenblock[src]

pub fn get_pixel(
    &self,
    x: u8,
    y: u8,
    memory: &DMGTileMemory,
    use_signed: bool
) -> u8
[src]

Gets the requested pixel out of the screenblock.

Because x and y are limited to the u8 range, this will never panic.

Trait Implementations

impl Default for DMGScreenblock[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> From<T> for 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]