diff options
Diffstat (limited to 'src/x11/window/mod.rs')
-rw-r--r-- | src/x11/window/mod.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/x11/window/mod.rs b/src/x11/window/mod.rs index 7bce19f..f22d1f8 100644 --- a/src/x11/window/mod.rs +++ b/src/x11/window/mod.rs @@ -535,6 +535,11 @@ impl Window { pub fn platform_display(&self) -> *mut libc::c_void { self.display as *mut libc::c_void } + + /// See the docs in the crate root file. + pub fn get_api(&self) -> ::Api { + ::Api::OpenGl + } } impl Drop for Window { |