[−][src]Struct gba_hal::data::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]
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(&self) -> 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
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,