[][src]Struct gba_hal::data::OBJAttr2

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

2nd part of an object's attributes.

  • Bits 0-9: Base Tile Index (tile offset from CBB4)
  • Bits 10-11: Priority
  • Bits 12-15: Palbank (if using 4bpp)

Methods

impl OBJAttr2[src]

pub const fn new() -> Self[src]

A const "zero value" constructor

impl OBJAttr2[src]

pub const TILE_ID_MASK: u16[src]

pub const fn tile_id(self) -> u16[src]

pub const fn with_tile_id(self, tile_id: u16) -> Self[src]

pub const PRIORITY_MASK: u16[src]

pub const fn priority(self) -> u16[src]

pub const fn with_priority(self, priority: u16) -> Self[src]

pub const PALBANK_MASK: u16[src]

pub const fn palbank(self) -> u16[src]

pub const fn with_palbank(self, palbank: u16) -> Self[src]

Trait Implementations

impl PartialEq<OBJAttr2> for OBJAttr2[src]

impl Eq for OBJAttr2[src]

impl Copy for OBJAttr2[src]

impl Debug for OBJAttr2[src]

impl Clone for OBJAttr2[src]

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

Performs copy-assignment from source. Read more

impl Default for OBJAttr2[src]

Auto Trait Implementations

impl Send for OBJAttr2

impl Sync for OBJAttr2

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]