[−][src]Struct gba_types::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]
&mut self,
affine_overflow_wraparound: bool
)
pub fn set_screen_size(&mut self, screen_size: u16)
[src]
Trait Implementations
impl Clone for BackgroundControlSetting
[src]
fn clone(&self) -> BackgroundControlSetting
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for BackgroundControlSetting
[src]
impl Debug for BackgroundControlSetting
[src]
impl Default for BackgroundControlSetting
[src]
fn default() -> BackgroundControlSetting
[src]
impl Eq for BackgroundControlSetting
[src]
impl Hash for BackgroundControlSetting
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for BackgroundControlSetting
[src]
fn cmp(&self, other: &BackgroundControlSetting) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<BackgroundControlSetting> for BackgroundControlSetting
[src]
fn eq(&self, other: &BackgroundControlSetting) -> bool
[src]
fn ne(&self, other: &BackgroundControlSetting) -> bool
[src]
impl PartialOrd<BackgroundControlSetting> for BackgroundControlSetting
[src]
fn partial_cmp(&self, other: &BackgroundControlSetting) -> Option<Ordering>
[src]
fn lt(&self, other: &BackgroundControlSetting) -> bool
[src]
fn le(&self, other: &BackgroundControlSetting) -> bool
[src]
fn gt(&self, other: &BackgroundControlSetting) -> bool
[src]
fn ge(&self, other: &BackgroundControlSetting) -> bool
[src]
impl StructuralEq for BackgroundControlSetting
[src]
impl StructuralPartialEq for BackgroundControlSetting
[src]
Auto Trait Implementations
impl Send for BackgroundControlSetting
impl Sync for BackgroundControlSetting
impl Unpin for BackgroundControlSetting
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,