Struct terminal_graphics::graphics::Graphics
[−]
[src]
pub struct Graphics { /* fields omitted */ }
Methods
impl Graphics
[src]
pub fn new() -> Graphics
[src]
pub fn draw(&self, display: &mut Display)
[src]
draw all the graphics to the display
pub fn move_named_graphic(&mut self, name: &str, dx: isize, dy: isize)
[src]
move a graphic from its name
pub fn add_named(&mut self, name: &str, graphic: Box<Graphic>)
[src]
Add a graphic with a name
pub fn get_mut_named(&mut self, name: &str) -> Option<&mut Box<Graphic>>
[src]
get a mutable reference to a graphic
pub fn get_named(&self, name: &str) -> Option<&Box<Graphic>>
[src]
get a reference to a graphic