aboutsummaryrefslogtreecommitdiffstats
path: root/src/api/x11/mod.rs
diff options
context:
space:
mode:
authorPierre Krieger <pierre.krieger1708@gmail.com>2015-04-24 09:51:23 +0200
committerPierre Krieger <pierre.krieger1708@gmail.com>2015-04-24 09:51:23 +0200
commit3ad7f9a58429b02b11b18f6a70ac011f698b6f4b (patch)
tree3061216335701a5faa8bd3c5c9ec0499a357be5a /src/api/x11/mod.rs
parentc1af76550f311e3da7a08d393b4ea9805cb61a7b (diff)
downloadglutin-3ad7f9a58429b02b11b18f6a70ac011f698b6f4b.tar.gz
glutin-3ad7f9a58429b02b11b18f6a70ac011f698b6f4b.zip
Create reorganization
Diffstat (limited to 'src/api/x11/mod.rs')
-rw-r--r--src/api/x11/mod.rs22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/api/x11/mod.rs b/src/api/x11/mod.rs
new file mode 100644
index 0000000..5aadc94
--- /dev/null
+++ b/src/api/x11/mod.rs
@@ -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