mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-04 05:11:28 +03:00
move rust-sciter in
This commit is contained in:
17
libs/rust-sciter/examples/archived.rs
Normal file
17
libs/rust-sciter/examples/archived.rs
Normal file
@@ -0,0 +1,17 @@
|
||||
//! 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();
|
||||
}
|
||||
Reference in New Issue
Block a user