api unification: impl HasRawWindowHandle on wrapper Window
This commit is contained in:
parent
1ddd6fa47e
commit
dd87afefd9
|
@ -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()
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue