From b53ff34aab2f0edf9a518529c5293c52c3fb63c4 Mon Sep 17 00:00:00 2001 From: Drakulix Date: Thu, 11 Jan 2018 01:45:38 +0100 Subject: [PATCH] Add option to access underlying window --- src/backend/winit.rs | 7 +++++++ 1 file changed, 7 insertions(+) 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 = ();