api unification: impl HasRawWindowHandle on wrapper Window
This commit is contained in:
parent
1ddd6fa47e
commit
dd87afefd9
1 changed files with 9 additions and 0 deletions
|
@ -1,3 +1,5 @@
|
||||||
|
use raw_window_handle::{HasRawWindowHandle, RawWindowHandle};
|
||||||
|
|
||||||
use crate::WindowHandler;
|
use crate::WindowHandler;
|
||||||
use crate::window_open_options::WindowOpenOptions;
|
use crate::window_open_options::WindowOpenOptions;
|
||||||
|
|
||||||
|
@ -34,3 +36,10 @@ impl <'a>Window<'a> {
|
||||||
platform::Window::open::<H, B>(options, build)
|
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…
Add table
Reference in a new issue