[][src]Struct gba_types::BackgroundControlSetting

#[repr(transparent)]pub struct BackgroundControlSetting(_);

Implementations

impl BackgroundControlSetting[src]

#[must_use]pub fn background_priority(self) -> u16[src]

Lower priority draws "closer" to the top.

In case of tie, you then sort by the BG's layer number:

bg_z_dist = (bg_priority << 2) + bg_num;

#[must_use]pub fn base_charblock(self) -> u16[src]

#[must_use]pub fn use_mosaic(self) -> bool[src]

#[must_use]pub fn is_8bpp(self) -> bool[src]

#[must_use]pub fn base_screenblock(self) -> u16[src]

#[must_use]pub fn affine_overflow_wraparound(self) -> bool[src]

#[must_use]pub fn screen_size(self) -> u16[src]

pub fn set_background_priority(&mut self, background_priority: u16)[src]

pub fn set_base_charblock(&mut self, base_charblock: u16)[src]

pub fn set_use_mosaic(&mut self, use_mosaic: bool)[src]

pub fn set_is_8bpp(&mut self, is_8bpp: bool)[src]

pub fn set_base_screenblock(&mut self, base_screenblock: u16)[src]

pub fn set_affine_overflow_wraparound(
    &mut self,
    affine_overflow_wraparound: bool
)
[src]

pub fn set_screen_size(&mut self, screen_size: u16)[src]

Trait Implementations

impl Clone for BackgroundControlSetting[src]

impl Copy for BackgroundControlSetting[src]

impl Debug for BackgroundControlSetting[src]

impl Default for BackgroundControlSetting[src]

impl Eq for BackgroundControlSetting[src]

impl Hash for BackgroundControlSetting[src]

impl Ord for BackgroundControlSetting[src]

impl PartialEq<BackgroundControlSetting> for BackgroundControlSetting[src]

impl PartialOrd<BackgroundControlSetting> for BackgroundControlSetting[src]

impl StructuralEq for BackgroundControlSetting[src]

impl StructuralPartialEq for BackgroundControlSetting[src]

Auto Trait Implementations

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, 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.