Add option to access underlying window

This commit is contained in:
Drakulix 2018-01-11 01:45:38 +01:00
parent 63aa7f8474
commit b53ff34aab
1 changed files with 7 additions and 0 deletions

View File

@ -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 = ();