Add option to access underlying window
This commit is contained in:
parent
63aa7f8474
commit
b53ff34aab
|
@ -178,6 +178,13 @@ where
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl WinitGraphicsBackend {
|
||||||
|
/// Get a reference to the internally used `winit::Window`
|
||||||
|
pub fn winit_window(&self) -> &WinitWindow {
|
||||||
|
self.window.window()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
impl GraphicsBackend for WinitGraphicsBackend {
|
impl GraphicsBackend for WinitGraphicsBackend {
|
||||||
type CursorFormat = MouseCursor;
|
type CursorFormat = MouseCursor;
|
||||||
type Error = ();
|
type Error = ();
|
||||||
|
|
Loading…
Reference in New Issue