[][src]Struct gba::oam::OBJAttr0

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

0th part of an object's attributes.

  • Bits 0-7: row-coordinate
  • Bits 8-9: Rendering style: Normal, Affine, Disabled, Double Area Affine
  • Bits 10-11: Object mode: Normal, SemiTransparent, Object Window
  • Bit 12: Mosaic
  • Bit 13: is 8bpp
  • Bits 14-15: Object Shape: Square, Horizontal, Vertical

Methods

impl OBJAttr0[src]

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

A const "zero value" constructor

impl OBJAttr0[src]

pub const ROW_COORDINATE_MASK: u16[src]

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

pub const fn with_row_coordinate(self, row_coordinate: u16) -> Self[src]

pub const OBJ_RENDERING_MASK: u16[src]

pub fn obj_rendering(self) -> ObjectRender[src]

pub const fn with_obj_rendering(self, obj_rendering: ObjectRender) -> Self[src]

pub const OBJ_MODE_MASK: u16[src]

pub fn obj_mode(self) -> ObjectMode[src]

pub const fn with_obj_mode(self, obj_mode: ObjectMode) -> Self[src]

pub const MOSAIC_BIT: u16[src]

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

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

pub const IS_8BPP_BIT: u16[src]

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

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

pub const OBJ_SHAPE_MASK: u16[src]

pub fn obj_shape(self) -> ObjectShape[src]

pub const fn with_obj_shape(self, obj_shape: ObjectShape) -> Self[src]

Trait Implementations

impl Clone for OBJAttr0[src]

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

Performs copy-assignment from source. Read more

impl Debug for OBJAttr0[src]

impl PartialEq<OBJAttr0> for OBJAttr0[src]

impl Eq for OBJAttr0[src]

impl Copy for OBJAttr0[src]

impl Default for OBJAttr0[src]

Auto Trait Implementations

impl Send for OBJAttr0

impl Sync for OBJAttr0

Blanket Implementations

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same for T[src]

type Output = T

Should always be Self