feat: main

This commit is contained in:
2021-05-05 19:55:54 +08:00
parent 355fcc1b9d
commit 084166e0bd

View File

@@ -10,7 +10,11 @@ fn main() {
// | sciter::SCRIPT_RUNTIME_FEATURES::ALLOW_FILE_IO as u8 // Enables opening file dialog (`view.selectFile()`) // | sciter::SCRIPT_RUNTIME_FEATURES::ALLOW_FILE_IO as u8 // Enables opening file dialog (`view.selectFile()`)
// )).unwrap(); // )).unwrap();
let mut frame = sciter::Window::new(); // let mut frame = sciter::Window::new();
let mut frame = sciter::WindowBuilder::main_window()
.with_size((800, 600))
.with_pos((200, 100))
.create();
if cfg!(target_os="macos") { if cfg!(target_os="macos") {
// a temporary workaround for OSX, see // a temporary workaround for OSX, see