aboutsummaryrefslogtreecommitdiffstats
path: root/src/api/wayland/mod.rs
blob: 77f018e52ea0ea85b619da4a0bb00828b183d58f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#![cfg(any(target_os = "linux", target_os = "dragonfly", target_os = "freebsd", target_os = "openbsd"))]

pub use self::monitor::{MonitorId, get_available_monitors, get_primary_monitor};
pub use self::window::{PollEventsIterator, WaitEventsIterator, Window, WindowProxy};

extern crate wayland_kbd;
extern crate wayland_window;

mod context;
mod events;
mod keyboard;
mod monitor;
mod window;

#[inline]
pub fn is_available() -> bool {
    context::WAYLAND_CONTEXT.is_some()
}