winit-sonoma-fix/src/api/x11/mod.rs

23 lines
606 B
Rust
Raw Normal View History

2015-04-24 17:51:23 +10:00
#![cfg(target_os = "linux")]
2014-10-05 04:17:02 +11:00
#[cfg(feature = "headless")]
pub use self::headless::HeadlessContext;
2014-07-27 23:10:58 +10:00
2014-10-05 04:17:02 +11:00
#[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};
2014-07-27 23:10:58 +10:00
mod ffi;
2014-10-05 04:17:02 +11:00
#[cfg(feature = "headless")]
mod headless;
2014-07-27 23:10:58 +10:00
2014-10-05 04:17:02 +11:00
#[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