[−][src]Trait caper::game::TextItems
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
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