1
0
Fork 0
baseview/src/lib.rs
2020-05-25 15:49:29 -04:00

23 lines
310 B
Rust

use std::ffi::c_void;
mod x11;
pub enum Parent {
None,
AsIfParented,
WithParent(*mut c_void),
}
pub struct WindowOpenOptions<'a> {
pub title: &'a str,
pub width: usize,
pub height: usize,
pub parent: Parent,
}
pub fn run(options: WindowOpenOptions) {
x11::run(options);
}