1
0
Fork 0
baseview/examples/windows.rs
Mirko Covizzi 23a63d15a5 Merge
2020-05-25 22:24:16 +02:00

22 lines
378 B
Rust

use std::ptr::null_mut;
use baseview::Parent;
use baseview::{create_window, handle_msg, WindowOpenOptions};
fn main() {
let window = WindowOpenOptions {
title: "Baseview",
width: 800,
height: 400,
parent: Parent::None,
};
create_window(window);
loop {
if !handle_msg(null_mut()) {
break;
}
}
}