Struct interface_builder::Page
source · pub struct Page { /* private fields */ }Implementations§
source§impl Page
impl Page
sourcepub fn new(
title: Option<&str>,
content: Vec<&str>,
footer: Option<Vec<&str>>,
width: u16,
height: Option<u16>
) -> Page
pub fn new(
title: Option<&str>,
content: Vec<&str>,
footer: Option<Vec<&str>>,
width: u16,
height: Option<u16>
) -> Page
Examples found in repository?
src/lib.rs (lines 50-55)
49 50 51 52 53 54 55 56 57 58 59 60
pub fn run_hello_builder(&self) {
self.print_page(&Page::new(
Some("Hello builder"),
vec!["Welcome to Interface Builder"],
Some(vec!["Press ESC to exit..."]),
37, None
));
builder::await_key_code(KeyCode::Esc);
builder::tools::clear_terminal();
}