2015-04-24 17:51:23 +10:00
|
|
|
#![cfg(target_os = "windows")]
|
|
|
|
|
2017-06-27 05:21:13 +10:00
|
|
|
use winapi;
|
2017-12-25 00:46:47 +11:00
|
|
|
use winapi::shared::windef::HWND;
|
2015-04-29 18:19:59 +10:00
|
|
|
|
2017-06-27 05:21:13 +10:00
|
|
|
pub use self::events_loop::{EventsLoop, EventsLoopProxy};
|
2017-09-01 19:04:57 +10:00
|
|
|
pub use self::monitor::MonitorId;
|
2017-06-27 05:21:13 +10:00
|
|
|
pub use self::window::Window;
|
2017-01-29 01:00:17 +11:00
|
|
|
|
2016-05-23 16:17:31 +10:00
|
|
|
#[derive(Clone, Default)]
|
2016-11-26 03:05:39 +11:00
|
|
|
pub struct PlatformSpecificWindowBuilderAttributes {
|
2017-12-25 00:46:47 +11:00
|
|
|
pub parent: Option<HWND>,
|
2016-11-26 03:05:39 +11:00
|
|
|
}
|
2016-11-29 23:02:42 +11:00
|
|
|
|
|
|
|
unsafe impl Send for PlatformSpecificWindowBuilderAttributes {}
|
|
|
|
unsafe impl Sync for PlatformSpecificWindowBuilderAttributes {}
|
|
|
|
|
2017-06-27 05:21:13 +10:00
|
|
|
// TODO: document what this means
|
2017-12-25 00:46:47 +11:00
|
|
|
pub type Cursor = *const winapi::ctypes::wchar_t;
|
2016-11-01 03:21:48 +11:00
|
|
|
|
2017-06-27 05:21:13 +10:00
|
|
|
// Constant device ID, to be removed when this backend is updated to report real device IDs.
|
|
|
|
#[derive(Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
|
|
|
pub struct DeviceId;
|
|
|
|
const DEVICE_ID: ::DeviceId = ::DeviceId(DeviceId);
|
2016-11-01 03:21:48 +11:00
|
|
|
|
2017-06-27 05:21:13 +10:00
|
|
|
#[derive(Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
2017-12-25 00:46:47 +11:00
|
|
|
pub struct WindowId(HWND);
|
2017-06-27 05:21:13 +10:00
|
|
|
unsafe impl Send for WindowId {}
|
|
|
|
unsafe impl Sync for WindowId {}
|
2016-11-01 03:21:48 +11:00
|
|
|
|
2017-06-27 05:21:13 +10:00
|
|
|
mod event;
|
|
|
|
mod events_loop;
|
|
|
|
mod monitor;
|
|
|
|
mod window;
|