mirror of https://github.com/xvxx/phetch
view gets its own file
parent
85891b87c2
commit
b6e1453a5d
@ -0,0 +1,9 @@
|
||||
use ui;
|
||||
|
||||
pub trait View {
|
||||
fn respond(&mut self, key: ui::Key) -> ui::Action;
|
||||
fn render(&self) -> String;
|
||||
fn url(&self) -> String;
|
||||
fn raw(&self) -> String;
|
||||
fn term_size(&mut self, cols: usize, rows: usize);
|
||||
}
|
Loading…
Reference in New Issue