diff options
author | tomaka <pierre.krieger1708@gmail.com> | 2014-12-18 20:51:48 +0100 |
---|---|---|
committer | tomaka <pierre.krieger1708@gmail.com> | 2014-12-18 20:51:48 +0100 |
commit | 70f9f8cf43e51cdd90e1a0163c40cfa617b9f511 (patch) | |
tree | e897dc26beb5faf7c75c127c813953d8407abc75 /src/x11 | |
parent | 0164449955d1b4787fce03f8800e32f19fd04a01 (diff) | |
parent | f2d112213ba889eddb6c1b0fab878bcd4f500c64 (diff) | |
download | glutin-70f9f8cf43e51cdd90e1a0163c40cfa617b9f511.tar.gz glutin-70f9f8cf43e51cdd90e1a0163c40cfa617b9f511.zip |
Merge pull request #160 from glennw/mac-resize
Add callback function to allow resize messages to be sent on mac.
Diffstat (limited to 'src/x11')
-rw-r--r-- | src/x11/headless.rs | 3 | ||||
-rw-r--r-- | src/x11/window/mod.rs | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/x11/headless.rs b/src/x11/headless.rs index 78fb985..95f5233 100644 --- a/src/x11/headless.rs +++ b/src/x11/headless.rs @@ -52,6 +52,9 @@ impl HeadlessContext { pub fn get_api(&self) -> ::Api { ::Api::OpenGl } + + pub fn set_window_resize_callback(&mut self, _: Option<fn(uint, uint)>) { + } } impl Drop for HeadlessContext { diff --git a/src/x11/window/mod.rs b/src/x11/window/mod.rs index a0e7078..422b5b6 100644 --- a/src/x11/window/mod.rs +++ b/src/x11/window/mod.rs @@ -598,4 +598,7 @@ impl Window { pub fn get_api(&self) -> ::Api { ::Api::OpenGl } + + pub fn set_window_resize_callback(&mut self, _: Option<fn(uint, uint)>) { + } } |