mirror of
https://github.com/rustdesk/rustdesk.git
synced 2024-12-22 08:47:51 +08:00
18 lines
363 B
Rust
18 lines
363 B
Rust
|
//! Sciter sample with archived resources.
|
||
|
|
||
|
extern crate sciter;
|
||
|
|
||
|
fn main() {
|
||
|
let resources = include_bytes!("archived.rc");
|
||
|
|
||
|
let mut frame = sciter::WindowBuilder::main_window()
|
||
|
.fixed()
|
||
|
.with_size((600, 400))
|
||
|
.create();
|
||
|
|
||
|
frame.archive_handler(resources).expect("Invalid archive");
|
||
|
|
||
|
frame.load_file("this://app/index.htm");
|
||
|
frame.run_app();
|
||
|
}
|