diff options
| author | tomaka <pierre.krieger1708@gmail.com> | 2014-12-18 20:36:37 +0100 | 
|---|---|---|
| committer | tomaka <pierre.krieger1708@gmail.com> | 2014-12-18 20:36:37 +0100 | 
| commit | 0164449955d1b4787fce03f8800e32f19fd04a01 (patch) | |
| tree | 67da783cd51b2266add4ac7f11918d878f11f019 /src/win32 | |
| parent | 94348113281828a2045efcf24536ab6b1aad837e (diff) | |
| parent | 95f82927b37e27f1880e9941b316227f6c6baebc (diff) | |
| download | glutin-0164449955d1b4787fce03f8800e32f19fd04a01.tar.gz glutin-0164449955d1b4787fce03f8800e32f19fd04a01.zip  | |
Merge pull request #161 from glennw/thread-proxy
Introduce a WindowProxy for accessing a subset of functionality
Diffstat (limited to 'src/win32')
| -rw-r--r-- | src/win32/mod.rs | 14 | 
1 files changed, 14 insertions, 0 deletions
diff --git a/src/win32/mod.rs b/src/win32/mod.rs index 5ba5a26..978e3b5 100644 --- a/src/win32/mod.rs +++ b/src/win32/mod.rs @@ -83,6 +83,16 @@ impl Window {      }  } +#[cfg(feature = "window")] +#[deriving(Clone)] +pub struct WindowProxy; + +impl WindowProxy { +    pub fn wakeup_event_loop(&self) { +        unimplemented!() +    } +} +  impl Window {      /// See the docs in the crate root file.      pub fn is_closed(&self) -> bool { @@ -180,6 +190,10 @@ impl Window {          }      } +    pub fn create_window_proxy(&self) -> WindowProxy { +        WindowProxy +    } +      /// See the docs in the crate root file.      // TODO: return iterator      pub fn poll_events(&self) -> Vec<Event> {  | 
