[−][src]Struct gba_hal::data::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]
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 PartialEq<OBJAttr0> for OBJAttr0
[src]
impl Eq for OBJAttr0
[src]
impl Debug for OBJAttr0
[src]
impl Copy for OBJAttr0
[src]
impl Clone for OBJAttr0
[src]
fn clone(&self) -> OBJAttr0
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Default for OBJAttr0
[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,