diff options
Diffstat (limited to 'src/x11')
-rw-r--r-- | src/x11/headless.rs | 5 | ||||
-rw-r--r-- | src/x11/window/mod.rs | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/src/x11/headless.rs b/src/x11/headless.rs index e6479d6..78fb985 100644 --- a/src/x11/headless.rs +++ b/src/x11/headless.rs @@ -47,6 +47,11 @@ impl HeadlessContext { }) } } + + /// See the docs in the crate root file. + pub fn get_api(&self) -> ::Api { + ::Api::OpenGl + } } impl Drop for HeadlessContext { 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 { |