diff --git a/src/backend/winit.rs b/src/backend/winit.rs index e5f8bea..57df1f5 100644 --- a/src/backend/winit.rs +++ b/src/backend/winit.rs @@ -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 { type CursorFormat = MouseCursor; type Error = ();