1
0
Fork 0

api unification: impl HasRawWindowHandle on wrapper Window

This commit is contained in:
Joakim Frostegård 2020-11-27 00:34:09 +01:00
parent 1ddd6fa47e
commit dd87afefd9

View file

@ -1,3 +1,5 @@
use raw_window_handle::{HasRawWindowHandle, RawWindowHandle};
use crate::WindowHandler;
use crate::window_open_options::WindowOpenOptions;
@ -34,3 +36,10 @@ impl <'a>Window<'a> {
platform::Window::open::<H, B>(options, build)
}
}
unsafe impl <'a>HasRawWindowHandle for Window<'a> {
fn raw_window_handle(&self) -> RawWindowHandle {
self.0.raw_window_handle()
}
}