aboutsummaryrefslogtreecommitdiffstats
path: root/src/x11
diff options
context:
space:
mode:
authorGlenn Watson <gw@intuitionlibrary.com>2014-12-16 15:49:22 +1000
committerGlenn Watson <gw@intuitionlibrary.com>2014-12-19 05:44:20 +1000
commit0ad9c3d453076adc5d94008d7e155d7ee5536225 (patch)
tree21deae10784df127b9989e2cfe4a472686ff1655 /src/x11
parent0164449955d1b4787fce03f8800e32f19fd04a01 (diff)
downloadglutin-0ad9c3d453076adc5d94008d7e155d7ee5536225.tar.gz
glutin-0ad9c3d453076adc5d94008d7e155d7ee5536225.zip
Add callback function to allow resize messages to be sent on mac.
Diffstat (limited to 'src/x11')
-rw-r--r--src/x11/headless.rs3
-rw-r--r--src/x11/window/mod.rs3
2 files changed, 6 insertions, 0 deletions
diff --git a/src/x11/headless.rs b/src/x11/headless.rs
index 78fb985..3bcea29 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, _: fn(uint, uint)) {
+ }
}
impl Drop for HeadlessContext {
diff --git a/src/x11/window/mod.rs b/src/x11/window/mod.rs
index a0e7078..0a3ba01 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, _: fn(uint, uint)) {
+ }
}