[][src]Enum gba::io::background::BGSize

#[repr(u16)]
pub enum BGSize { Zero, One, Two, Three, }

The size of a background.

The meaning changes depending on if the background is Text or Affine mode.

  • In text mode, the screen base block determines where to start reading the tile arrangement data (2k). Size Zero gives one screen block of use. Size One and Two cause two of them to be used (horizontally or vertically, respectively). Size Three is four blocks used, [0,1] above and then [2,3] below. Each screen base block used is always a 32x32 tile grid.
  • In affine mode, the screen base block determines where to start reading data followed by the size of data as shown. The number of tiles varies according to the size used.

Variants

Zero
  • Text: 256x256px (2k)
  • Affine: 128x128px (256b)
One
  • Text: 512x256px (4k)
  • Affine: 256x256px (1k)
Two
  • Text: 256x512px (4k)
  • Affine: 512x512px (4k)
Three
  • Text: 512x512px (8k)
  • Affine: 1024x1024px (16k)

Trait Implementations

impl Copy for BGSize[src]

impl PartialEq<BGSize> for BGSize[src]

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

This method tests for !=.

impl Eq for BGSize[src]

impl Clone for BGSize[src]

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

Performs copy-assignment from source. Read more

impl Debug for BGSize[src]

Auto Trait Implementations

impl Send for BGSize

impl Sync for BGSize

Blanket Implementations

impl<T> From for T[src]

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

impl<T> Same for T[src]

type Output = T

Should always be Self