winit-sonoma-fix/src/api/wayland/mod.rs

18 lines
440 B
Rust
Raw Normal View History

#![cfg(any(target_os = "linux", target_os = "dragonfly", target_os = "freebsd"))]
2015-04-30 15:49:46 +10:00
pub use self::monitor::{MonitorId, get_available_monitors, get_primary_monitor};
pub use self::window::{PollEventsIterator, WaitEventsIterator, Window, WindowProxy};
2015-05-13 16:32:20 +10:00
2015-05-15 05:46:29 +10:00
extern crate wayland_kbd;
extern crate wayland_window;
2015-04-30 15:49:46 +10:00
2015-12-09 09:30:17 +11:00
mod context;
mod events;
mod monitor;
mod window;
2015-09-21 22:42:05 +10:00
#[inline]
pub fn is_available() -> bool {
2015-12-09 09:30:17 +11:00
context::WAYLAND_CONTEXT.is_some()
}