Create reorganization
This commit is contained in:
parent
c1af76550f
commit
3ad7f9a584
27 changed files with 42 additions and 15 deletions
22
src/api/x11/mod.rs
Normal file
22
src/api/x11/mod.rs
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
#![cfg(target_os = "linux")]
|
||||
|
||||
#[cfg(feature = "headless")]
|
||||
pub use self::headless::HeadlessContext;
|
||||
|
||||
#[cfg(feature = "window")]
|
||||
pub use self::window::{Window, WindowProxy, MonitorID, get_available_monitors, get_primary_monitor};
|
||||
#[cfg(feature = "window")]
|
||||
pub use self::window::{WaitEventsIterator, PollEventsIterator};
|
||||
|
||||
mod ffi;
|
||||
|
||||
#[cfg(feature = "headless")]
|
||||
mod headless;
|
||||
|
||||
#[cfg(feature = "window")]
|
||||
mod window;
|
||||
|
||||
#[cfg(not(feature = "window"))]
|
||||
pub type Window = (); // TODO: hack to make things work
|
||||
#[cfg(not(feature = "window"))]
|
||||
pub type MonitorID = (); // TODO: hack to make things work
|
||||
Loading…
Add table
Add a link
Reference in a new issue