Struct terminal_graphics::display::display::Display
[−]
[src]
pub struct Display { /* fields omitted */ }
Methods
impl Display
[src]
pub fn new(size_x: u32, size_y: u32) -> Display
[src]
pub fn set_pixel(
&mut self,
x: isize,
y: isize,
character: char,
colour: Colour,
background: Colour
)
[src]
&mut self,
x: isize,
y: isize,
character: char,
colour: Colour,
background: Colour
)
set a pixel
pub fn get_mut_pixel(&mut self, x: isize, y: isize) -> &mut Pixel
[src]
get a mutable reference to a pixel at position (x, y)
pub fn clear(&mut self)
[src]
Clears the display
pub fn print(&self)
[src]
Prints the display to the temrinal