add WindowOpenOptions
This commit is contained in:
commit
7f299cf69b
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
/target
|
||||
Cargo.lock
|
9
Cargo.toml
Normal file
9
Cargo.toml
Normal 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
16
src/lib.rs
Normal 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
|
||||
}
|
Loading…
Reference in a new issue