Add experimental attribute since this API will need to be cleaned up.

This commit is contained in:
Glenn Watson 2014-12-19 05:06:56 +10:00
parent fa5cb66cff
commit f2d112213b

View file

@ -486,6 +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.
#[experimental]
pub fn set_window_resize_callback(&mut self, callback: Option<fn(uint, uint)>) {
self.window.set_window_resize_callback(callback);
}
@ -550,6 +551,7 @@ impl HeadlessContext {
self.context.get_api()
}
#[experimental]
pub fn set_window_resize_callback(&mut self, _: Option<fn(uint, uint)>) {
}
}