Update winapi to 0.3 (#346)

* Update to `winapi` 0.3

* Update max size comment

* Fix missing import

* Shorten import path

* Update to stable winapi version
This commit is contained in:
Gabriel Majeri 2017-12-24 15:46:47 +02:00 committed by Pierre Krieger
parent 463f316cb8
commit d92666c188
8 changed files with 379 additions and 381 deletions

View file

@ -5,7 +5,7 @@ use libc;
use MonitorId;
use Window;
use WindowBuilder;
use winapi;
use winapi::shared::windef::HWND;
/// Additional methods on `Window` that are specific to Windows.
pub trait WindowExt {
@ -24,13 +24,13 @@ impl WindowExt for Window {
/// Additional methods on `WindowBuilder` that are specific to Windows.
pub trait WindowBuilderExt {
fn with_parent_window(self, parent: winapi::HWND) -> WindowBuilder;
fn with_parent_window(self, parent: HWND) -> WindowBuilder;
}
impl WindowBuilderExt for WindowBuilder {
/// Sets a parent to the window to be created.
#[inline]
fn with_parent_window(mut self, parent: winapi::HWND) -> WindowBuilder {
fn with_parent_window(mut self, parent: HWND) -> WindowBuilder {
self.platform_specific.parent = Some(parent);
self
}