aboutsummaryrefslogtreecommitdiffstats
path: root/src/win32/mod.rs
diff options
context:
space:
mode:
authortomaka <pierre.krieger1708@gmail.com>2014-12-18 20:51:48 +0100
committertomaka <pierre.krieger1708@gmail.com>2014-12-18 20:51:48 +0100
commit70f9f8cf43e51cdd90e1a0163c40cfa617b9f511 (patch)
treee897dc26beb5faf7c75c127c813953d8407abc75 /src/win32/mod.rs
parent0164449955d1b4787fce03f8800e32f19fd04a01 (diff)
parentf2d112213ba889eddb6c1b0fab878bcd4f500c64 (diff)
downloadglutin-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/win32/mod.rs')
-rw-r--r--src/win32/mod.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/win32/mod.rs b/src/win32/mod.rs
index 978e3b5..f900c1f 100644
--- a/src/win32/mod.rs
+++ b/src/win32/mod.rs
@@ -46,6 +46,9 @@ impl HeadlessContext {
pub fn get_api(&self) -> ::Api {
::Api::OpenGl
}
+
+ pub fn set_window_resize_callback(&mut self, _: Option<fn(uint, uint)>) {
+ }
}
/// The Win32 implementation of the main `Window` object.
@@ -276,6 +279,9 @@ impl Window {
pub fn get_api(&self) -> ::Api {
::Api::OpenGl
}
+
+ pub fn set_window_resize_callback(&mut self, _: Option<fn(uint, uint)>) {
+ }
}
#[unsafe_destructor]