aboutsummaryrefslogtreecommitdiffstats
path: root/src/api/x11/mod.rs
diff options
context:
space:
mode:
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