Skip to main content

Window

Trait Window 

Source
pub trait Window {
    // Required methods
    fn move_print(&mut self, point: ScreenPoint, text: &str);
    fn print(&mut self, text: &str);
    fn refresh(&mut self);
    fn get_char(&mut self) -> char;
}

Required Methods§

Source

fn move_print(&mut self, point: ScreenPoint, text: &str)

Move the cursor to specific coordinates and print a string

Source

fn print(&mut self, text: &str)

Print a string at the current cursor coordinates

Source

fn refresh(&mut self)

Source

fn get_char(&mut self) -> char

Implementors§