From 3ad7f9a58429b02b11b18f6a70ac011f698b6f4b Mon Sep 17 00:00:00 2001 From: Pierre Krieger Date: Fri, 24 Apr 2015 09:51:23 +0200 Subject: Create reorganization --- src/api/x11/mod.rs | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/api/x11/mod.rs (limited to 'src/api/x11/mod.rs') 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 -- cgit v1.2.3