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