[][src]Enum gba_hal::data::DisplayMode

#[repr(u16)]
pub enum DisplayMode { Mode0, Mode1, Mode2, Mode3, Mode4, Mode5, }

The six display modes available on the GBA.

Variants

Mode0
  • Affine: No
  • Layers: 0/1/2/3
  • Size(px): 256x256 to 512x512
  • Tiles: 1024
  • Palette Modes: 4bpp or 8bpp
Mode1
  • BG0 / BG1: As Mode0
  • BG2: As Mode2
Mode2
  • Affine: Yes
  • Layers: 2/3
  • Size(px): 128x128 to 1024x1024
  • Tiles: 256
  • Palette Modes: 8bpp
Mode3
  • Affine: Yes
  • Layers: 2
  • Size(px): 240x160 (1 page)
  • Bitmap
  • Full Color
Mode4
  • Affine: Yes
  • Layers: 2
  • Size(px): 240x160 (2 pages)
  • Bitmap
  • Palette Modes: 8bpp
Mode5
  • Affine: Yes
  • Layers: 2
  • Size(px): 160x128 (2 pages)
  • Bitmap
  • Full Color

Trait Implementations

impl PartialEq<DisplayMode> for DisplayMode[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl Eq for DisplayMode[src]

impl Debug for DisplayMode[src]

impl Copy for DisplayMode[src]

impl Clone for DisplayMode[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for DisplayMode

impl Sync for DisplayMode

Blanket Implementations

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> Into<U> for T where
    U: From<T>, 
[src]

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

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> Borrow<T> for T where
    T: ?Sized
[src]

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

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