winit/src/x11/mod.rs

21 lines
576 B
Rust
Raw Normal View History

2014-10-04 19:17:02 +02:00
#[cfg(feature = "headless")]
pub use self::headless::HeadlessContext;
2014-07-27 15:10:58 +02:00
2014-10-04 19:17:02 +02: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 15:10:58 +02:00
mod ffi;
2014-10-04 19:17:02 +02:00
#[cfg(feature = "headless")]
mod headless;
2014-07-27 15:10:58 +02:00
2014-10-04 19:17:02 +02: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