aboutsummaryrefslogtreecommitdiffstats
path: root/src/platform/linux/mod.rs
blob: 63a0118d4cd5890f8f3e6fcfccc21b3c33e14889 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#![cfg(target_os = "linux")]

#[cfg(feature = "headless")]
pub use api::osmesa::OsMesaContext as HeadlessContext;

#[cfg(feature = "window")]
pub use api::x11::{Window, WindowProxy, MonitorID, get_available_monitors, get_primary_monitor};
#[cfg(feature = "window")]
pub use api::x11::{WaitEventsIterator, PollEventsIterator};

#[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