[][src]Trait caper::game::TextItems

pub trait TextItems {
    fn text_items_len(&self) -> usize;
fn text_items_iter_mut(&mut self) -> IterMut<'_, TextItem>;
fn get_text_item(&mut self, index: usize) -> &mut TextItem;
fn get_text_item_by_name(&mut self, name: String) -> Option<&mut TextItem>;
fn add_text_item(&mut self, text_item: TextItem); }

Trait for operations on TextItem

Required methods

fn text_items_len(&self) -> usize

Get the len of render_items

fn text_items_iter_mut(&mut self) -> IterMut<'_, TextItem>

Get an IterMut of the TextItem

fn get_text_item(&mut self, index: usize) -> &mut TextItem

Get a ref to a text item

fn get_text_item_by_name(&mut self, name: String) -> Option<&mut TextItem>

Get a ref to a text item from its name, returning the first found

fn add_text_item(&mut self, text_item: TextItem)

Add a text item to the game

Loading content...

Implementors

impl<T: Default> TextItems for Game<T>[src]

fn text_items_len(&self) -> usize[src]

Get the len of render_items

fn text_items_iter_mut(&mut self) -> IterMut<'_, TextItem>[src]

Get an IterMut of the TextItem

fn get_text_item(&mut self, index: usize) -> &mut TextItem[src]

Get a ref to a text item

fn get_text_item_by_name(&mut self, name: String) -> Option<&mut TextItem>[src]

Get a ref to a text item from its name, returning the first found

fn add_text_item(&mut self, text_item: TextItem)[src]

Add a text item to the game

Loading content...