aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
authorGlenn Watson <gw@intuitionlibrary.com>2014-12-17 09:41:27 +1000
committerGlenn Watson <gw@intuitionlibrary.com>2014-12-19 05:44:47 +1000
commitfa5cb66cff2e13a5ee75c4f99abe5f93bede7dd1 (patch)
treed43f94a82c811600935ec4fe5848499f63c80357 /src/lib.rs
parent0ad9c3d453076adc5d94008d7e155d7ee5536225 (diff)
downloadglutin-fa5cb66cff2e13a5ee75c4f99abe5f93bede7dd1.tar.gz
glutin-fa5cb66cff2e13a5ee75c4f99abe5f93bede7dd1.zip
Add resize example, fix warnings, make callback an option so it can be removed.
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 48fcc85..eee166b 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -486,7 +486,7 @@ impl Window {
/// Sets a resize callback that is called by Mac (and potentially other
/// operating systems) during resize operations. This can be used to repaint
/// during window resizing.
- pub fn set_window_resize_callback(&mut self, callback: fn(uint, uint)) {
+ pub fn set_window_resize_callback(&mut self, callback: Option<fn(uint, uint)>) {
self.window.set_window_resize_callback(callback);
}
}
@@ -550,7 +550,7 @@ impl HeadlessContext {
self.context.get_api()
}
- pub fn set_window_resize_callback(&mut self, _: fn(uint, uint)) {
+ pub fn set_window_resize_callback(&mut self, _: Option<fn(uint, uint)>) {
}
}