[][src]Struct gba_hal::data::OBJAttr1

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

1st part of an object's attributes.

  • Bits 0-8: column coordinate
  • Bits 9-13:
    • Normal render: Bit 12 holds hflip and 13 holds vflip.
    • Affine render: The affine parameter selection.
  • Bits 14-15: Object Size

Methods

impl OBJAttr1[src]

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

A const "zero value" constructor

impl OBJAttr1[src]

pub const COL_COORDINATE_MASK: u16[src]

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

pub const fn with_col_coordinate(self, col_coordinate: u16) -> Self[src]

pub const AFFINE_INDEX_MASK: u16[src]

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

pub const fn with_affine_index(self, affine_index: u16) -> Self[src]

pub const HFLIP_BIT: u16[src]

pub const fn hflip(self) -> bool[src]

pub const fn with_hflip(self, bit: bool) -> Self[src]

pub const VFLIP_BIT: u16[src]

pub const fn vflip(self) -> bool[src]

pub const fn with_vflip(self, bit: bool) -> Self[src]

pub const OBJ_SIZE_MASK: u16[src]

pub fn obj_size(self) -> ObjectSize[src]

pub const fn with_obj_size(self, obj_size: ObjectSize) -> Self[src]

Trait Implementations

impl PartialEq<OBJAttr1> for OBJAttr1[src]

impl Eq for OBJAttr1[src]

impl Debug for OBJAttr1[src]

impl Copy for OBJAttr1[src]

impl Clone for OBJAttr1[src]

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

Performs copy-assignment from source. Read more

impl Default for OBJAttr1[src]

Auto Trait Implementations

impl Send for OBJAttr1

impl Sync for OBJAttr1

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]