mirror of https://github.com/xvxx/phetch
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
342 B
Rust
25 lines
342 B
Rust
5 years ago
|
use page::Page;
|
||
|
|
||
|
#[derive(Debug)]
|
||
|
pub struct UI {
|
||
|
pages: Vec<Page>,
|
||
|
page: usize,
|
||
|
}
|
||
|
|
||
|
impl UI {
|
||
|
pub fn new() -> UI {
|
||
|
UI {
|
||
|
pages: vec![],
|
||
|
page: 0,
|
||
|
}
|
||
|
}
|
||
|
|
||
|
pub fn print(&self) {
|
||
|
print!("{}", self.render());
|
||
|
}
|
||
|
|
||
|
pub fn render(&self) -> String {
|
||
|
String::new()
|
||
|
}
|
||
|
}
|