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]
impl Tiled0
[src]pub fn set_sprite_palette(&mut self, colour: &[u16])
[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]
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]
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]
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]
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]
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.