Struct agb::display::tiled0::Tiled0[][src]

#[non_exhaustive]
pub struct Tiled0 { pub object: ObjectControl, // some fields omitted }

Fields (Non-exhaustive)

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct {{ .. }} syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
object: ObjectControl

Implementations

impl Tiled0[src]

pub fn set_sprite_palette(&mut self, colour: &[u16])[src]

Copies raw palettes to the background palette without any checks.

pub fn set_background_palette_raw(&mut self, palette: &[u16])[src]

Copies raw palettes to the background palette without any checks.

pub fn set_background_palettes(&mut self, palettes: &[Palette16])[src]

Copies palettes to the background palettes without any checks.

pub fn set_sprite_tilemap(&mut self, tiles: &[u32])[src]

Copies tiles to the sprite tilemap without any checks.

pub fn get_background(&mut self) -> Result<Background<'_>, &'static str>[src]

Gets a map background if possible and assigns an unused block to it.

pub fn set_background_tilemap(&mut self, start_tile: u32, tiles: &[u32])[src]

Copies tiles to tilemap starting at the starting tile. Cannot overwrite blocks that are already written to, panic is caused if this is attempted.

Auto Trait Implementations

impl Send for Tiled0

impl Sync for Tiled0

impl Unpin for Tiled0

Blanket Implementations

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

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.