2015-04-24 09:51:23 +02:00
|
|
|
#![cfg(target_os = "windows")]
|
|
|
|
|
|
2017-06-26 21:21:13 +02:00
|
|
|
use winapi;
|
2015-04-29 10:19:59 +02:00
|
|
|
|
2017-06-26 21:21:13 +02:00
|
|
|
pub use self::events_loop::{EventsLoop, EventsLoopProxy};
|
|
|
|
|
pub use self::monitor::{MonitorId, get_available_monitors, get_primary_monitor};
|
|
|
|
|
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 {
|
2016-11-29 13:02:42 +01:00
|
|
|
pub parent: Option<winapi::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
|
2016-10-31 17:21:48 +01:00
|
|
|
pub type Cursor = *const winapi::wchar_t;
|
|
|
|
|
|
2017-06-26 21:21:13 +02:00
|
|
|
// TODO: remove
|
|
|
|
|
pub type Window2 = Window;
|
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)]
|
|
|
|
|
pub struct WindowId(winapi::HWND);
|
|
|
|
|
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;
|