extern crate web_view; use web_view::*; fn main() { web_view::builder() .title("Fullscreen example") .content(Content::Html(HTML)) .size(800, 100) .resizable(true) .debug(true) .user_data("") .invoke_handler(|webview, arg| { match arg { "enter" => webview.set_fullscreen(true), "exit" => webview.set_fullscreen(false), _ => (), } Ok(()) }) .run() .unwrap(); } const HTML: &str = r#"
"#;