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