Add callback function to allow resize messages to be sent on mac.

This commit is contained in:
Glenn Watson 2014-12-16 15:49:22 +10:00
parent 0164449955
commit 0ad9c3d453
6 changed files with 102 additions and 32 deletions

View file

@ -46,6 +46,9 @@ impl HeadlessContext {
pub fn get_api(&self) -> ::Api {
::Api::OpenGl
}
pub fn set_window_resize_callback(&mut self, _: 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, _: fn(uint, uint)) {
}
}
#[unsafe_destructor]