pub use super::keyboard::Key;
pub use super::uibuf::{CharStyle, CharColor};
pub use self::rb::RustboxFrontend;
pub enum EditorEvent {
KeyEvent(Option<Key>),
Resize(usize, usize),
UnSupported
}
pub trait Frontend {
fn poll_event(&self) -> EditorEvent;
fn present(&self);
fn get_window_height(&self) -> usize;
fn get_window_width(&self) -> usize;
fn draw_cursor(&mut self, offset: isize, linenum: isize);
fn draw_char(&mut self, offset: usize, linenum: usize, ch: char, fg: CharColor, bg: CharColor, style: CharStyle);
}
mod rb;