[−][src]Enum gba_hal::data::DisplayMode
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]
fn eq(&self, other: &DisplayMode) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=
.
impl Eq for DisplayMode
[src]
impl Copy for DisplayMode
[src]
impl Debug for DisplayMode
[src]
impl Clone for DisplayMode
[src]
fn clone(&self) -> 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]
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> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,