2016-03-01 18:06:13 -08:00
|
|
|
#![cfg(any(target_os = "linux", target_os = "dragonfly", target_os = "freebsd", target_os = "openbsd"))]
|
2015-04-30 07:49:46 +02:00
|
|
|
|
2017-10-20 09:46:42 +02:00
|
|
|
pub use self::window::Window;
|
|
|
|
|
pub use self::event_loop::{EventsLoop, EventsLoopProxy, EventsLoopSink, MonitorId};
|
2017-03-04 14:04:01 +01:00
|
|
|
|
2015-05-14 21:46:29 +02:00
|
|
|
extern crate wayland_kbd;
|
2015-08-16 14:12:21 +02:00
|
|
|
extern crate wayland_window;
|
2017-07-05 16:23:10 +02:00
|
|
|
extern crate wayland_protocols;
|
2015-04-30 07:49:46 +02:00
|
|
|
|
2017-10-20 09:46:42 +02:00
|
|
|
use wayland_client::protocol::wl_surface;
|
|
|
|
|
use wayland_client::Proxy;
|
|
|
|
|
|
2017-03-04 14:04:01 +01:00
|
|
|
mod event_loop;
|
2016-10-09 16:03:00 +02:00
|
|
|
mod keyboard;
|
2015-12-08 22:54:06 +01:00
|
|
|
mod window;
|
2017-04-22 13:52:35 -07:00
|
|
|
|
|
|
|
|
#[derive(Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
|
|
|
|
pub struct DeviceId;
|
2017-10-20 09:46:42 +02:00
|
|
|
|
|
|
|
|
#[derive(Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
|
|
|
|
pub struct WindowId(usize);
|
|
|
|
|
|
|
|
|
|
#[inline]
|
|
|
|
|
fn make_wid(s: &wl_surface::WlSurface) -> WindowId {
|
|
|
|
|
WindowId(s.ptr() as usize)
|
|
|
|
|
}
|