2016-10-07 19:52:19 +02:00
|
|
|
use std::collections::VecDeque;
|
2015-12-13 11:43:39 +01:00
|
|
|
|
2016-10-07 19:52:19 +02:00
|
|
|
use wayland_client::protocol::{wl_compositor, wl_seat, wl_shell, wl_shm, wl_subcompositor};
|
2015-12-08 23:30:17 +01:00
|
|
|
|
|
|
|
|
wayland_env!(InnerEnv,
|
2016-10-07 19:52:19 +02:00
|
|
|
compositor: wl_compositor::WlCompositor,
|
|
|
|
|
seat: wl_seat::WlSeat,
|
|
|
|
|
shell: wl_shell::WlShell,
|
|
|
|
|
shm: wl_shm::WlShm,
|
|
|
|
|
subcompositor: wl_subcompositor::WlSubcompositor
|
2015-12-08 23:30:17 +01:00
|
|
|
);
|
|
|
|
|
|
|
|
|
|
pub struct WaylandContext {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
impl WaylandContext {
|
2016-10-07 19:52:19 +02:00
|
|
|
pub fn init() -> Option<WaylandContext> {
|
|
|
|
|
None
|
2015-12-13 11:43:39 +01:00
|
|
|
}
|
2016-10-07 19:52:19 +02:00
|
|
|
|
|
|
|
|
pub fn get_primary_monitor(&self) -> MonitorId {
|
|
|
|
|
unimplemented!()
|
2015-12-13 11:43:39 +01:00
|
|
|
}
|
2016-10-07 19:52:19 +02:00
|
|
|
|
|
|
|
|
pub fn get_available_monitors(&self) -> VecDeque<MonitorId> {
|
|
|
|
|
unimplemented!()
|
2015-12-13 11:43:39 +01:00
|
|
|
}
|
2016-10-07 19:52:19 +02:00
|
|
|
}
|
2015-12-13 11:43:39 +01:00
|
|
|
|
2016-10-07 19:52:19 +02:00
|
|
|
#[derive(Clone)]
|
|
|
|
|
pub struct MonitorId;
|
2015-12-22 14:35:15 +01:00
|
|
|
|
2016-10-07 19:52:19 +02:00
|
|
|
impl MonitorId {
|
|
|
|
|
pub fn get_name(&self) -> Option<String> {
|
|
|
|
|
unimplemented!()
|
2015-12-22 14:35:15 +01:00
|
|
|
}
|
|
|
|
|
|
2016-10-07 19:52:19 +02:00
|
|
|
#[inline]
|
|
|
|
|
pub fn get_native_identifier(&self) -> ::native_monitor::NativeMonitorId {
|
|
|
|
|
::native_monitor::NativeMonitorId::Unavailable
|
2015-12-22 14:35:15 +01:00
|
|
|
}
|
|
|
|
|
|
2016-10-07 19:52:19 +02:00
|
|
|
pub fn get_dimensions(&self) -> (u32, u32) {
|
|
|
|
|
unimplemented!()
|
2015-12-22 14:35:15 +01:00
|
|
|
}
|
2015-12-13 11:43:39 +01:00
|
|
|
}
|