diff options
author | Tomaka17 <pierre.krieger1708@gmail.com> | 2014-08-02 08:24:30 +0200 |
---|---|---|
committer | Tomaka17 <pierre.krieger1708@gmail.com> | 2014-08-02 08:29:37 +0200 |
commit | 5dda16702164d59a75d8c36373cf29a8d7f4d58f (patch) | |
tree | c087244f783b60dff1baf46d7f7cc6f6d206fc50 /src/win32 | |
parent | 959613870c23e2ca26bee268c46f8062095c2382 (diff) | |
download | glutin-5dda16702164d59a75d8c36373cf29a8d7f4d58f.tar.gz glutin-5dda16702164d59a75d8c36373cf29a8d7f4d58f.zip |
Add iterators for events and WindowBuilder
Diffstat (limited to 'src/win32')
-rw-r--r-- | src/win32/init.rs | 4 | ||||
-rw-r--r-- | src/win32/mod.rs | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/win32/init.rs b/src/win32/init.rs index db08a42..ce558dc 100644 --- a/src/win32/init.rs +++ b/src/win32/init.rs @@ -6,7 +6,7 @@ use std::sync::atomics::AtomicBool; use std::ptr; use super::{event, ffi}; use super::{MonitorID, Window}; -use {Event, Hints}; +use Event; /// Stores the current window and its events dispatcher. /// @@ -15,7 +15,7 @@ use {Event, Hints}; local_data_key!(WINDOW: (ffi::HWND, Sender<Event>)) pub fn new_window(dimensions: Option<(uint, uint)>, title: &str, - _hints: &Hints, monitor: Option<MonitorID>) + monitor: Option<MonitorID>) -> Result<Window, String> { use std::mem; diff --git a/src/win32/mod.rs b/src/win32/mod.rs index 7558245..0d44a75 100644 --- a/src/win32/mod.rs +++ b/src/win32/mod.rs @@ -1,6 +1,6 @@ use std::sync::atomics::AtomicBool; use std::ptr; -use {Event, Hints}; +use Event; pub use self::monitor::{MonitorID, get_available_monitors, get_primary_monitor}; @@ -36,10 +36,10 @@ pub struct Window { impl Window { /// See the docs if the crate root file. pub fn new(dimensions: Option<(uint, uint)>, title: &str, - hints: &Hints, monitor: Option<MonitorID>) + monitor: Option<MonitorID>) -> Result<Window, String> { - init::new_window(dimensions, title, hints, monitor) + init::new_window(dimensions, title, monitor) } /// See the docs if the crate root file. |