aboutsummaryrefslogtreecommitdiffstats
path: root/src/api/x11/mod.rs
blob: 5aadc94d6652f5d45b5f9bf7c701dc5af12e79b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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