1
0
Fork 0

add WindowOpenOptions

This commit is contained in:
William Light 2020-05-25 20:04:48 +02:00
commit 7f299cf69b
3 changed files with 27 additions and 0 deletions

2
.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
/target
Cargo.lock

9
Cargo.toml Normal file
View file

@ -0,0 +1,9 @@
[package]
name = "baseview"
version = "0.1.0"
authors = ["William Light <git@wrl.lhiaudio.com>"]
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]

16
src/lib.rs Normal file
View file

@ -0,0 +1,16 @@
use std::ffi::c_void;
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
}