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")]
|
2014-12-17 14:49:11 +10:00
|
|
|
pub use self::window::{Window, WindowProxy, MonitorID, get_available_monitors, get_primary_monitor};
|
2015-02-02 10:26:11 +01:00
|
|
|
#[cfg(feature = "window")]
|
|
|
|
|
pub use self::window::{WaitEventsIterator, PollEventsIterator};
|
2014-09-19 15:42:47 +02:00
|
|
|
|
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;
|
2014-12-28 15:08:41 +01:00
|
|
|
|
|
|
|
|
#[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
|