mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-24 22:31:30 +11:00
Add experimental attribute since this API will need to be cleaned up.
This commit is contained in:
parent
fa5cb66cff
commit
f2d112213b
|
@ -486,6 +486,7 @@ impl Window {
|
||||||
/// Sets a resize callback that is called by Mac (and potentially other
|
/// Sets a resize callback that is called by Mac (and potentially other
|
||||||
/// operating systems) during resize operations. This can be used to repaint
|
/// operating systems) during resize operations. This can be used to repaint
|
||||||
/// during window resizing.
|
/// during window resizing.
|
||||||
|
#[experimental]
|
||||||
pub fn set_window_resize_callback(&mut self, callback: Option<fn(uint, uint)>) {
|
pub fn set_window_resize_callback(&mut self, callback: Option<fn(uint, uint)>) {
|
||||||
self.window.set_window_resize_callback(callback);
|
self.window.set_window_resize_callback(callback);
|
||||||
}
|
}
|
||||||
|
@ -550,6 +551,7 @@ impl HeadlessContext {
|
||||||
self.context.get_api()
|
self.context.get_api()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[experimental]
|
||||||
pub fn set_window_resize_callback(&mut self, _: Option<fn(uint, uint)>) {
|
pub fn set_window_resize_callback(&mut self, _: Option<fn(uint, uint)>) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue