aboutsummaryrefslogtreecommitdiffstats
path: root/src/api
diff options
context:
space:
mode:
authortomaka <pierre.krieger1708@gmail.com>2015-10-03 10:11:11 +0200
committertomaka <pierre.krieger1708@gmail.com>2015-10-03 10:11:11 +0200
commitc8fd077e17f7a7147d6877f2343c82790b187bd2 (patch)
tree5ecb913e185ea471fb6f3892537b0f5677614ee1 /src/api
parent5e1e7436af2b06350d30420c43e8b4a0dcf8ddfe (diff)
parent8c6a27d42615fc97b1aed31c20c3aff3d25c88d4 (diff)
downloadglutin-c8fd077e17f7a7147d6877f2343c82790b187bd2.tar.gz
glutin-c8fd077e17f7a7147d6877f2343c82790b187bd2.zip
Merge pull request #617 from tomaka/platform-specific
Add an `os` module containing platform-specific traits
Diffstat (limited to 'src/api')
-rw-r--r--src/api/x11/window.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/api/x11/window.rs b/src/api/x11/window.rs
index 50dd505..cf7854e 100644
--- a/src/api/x11/window.rs
+++ b/src/api/x11/window.rs
@@ -659,11 +659,21 @@ impl Window {
}
#[inline]
+ pub fn get_xlib_display(&self) -> *mut libc::c_void {
+ self.x.display.display as *mut libc::c_void
+ }
+
+ #[inline]
pub fn platform_display(&self) -> *mut libc::c_void {
self.x.display.display as *mut libc::c_void
}
#[inline]
+ pub fn get_xlib_window(&self) -> *mut libc::c_void {
+ self.x.window as *mut libc::c_void
+ }
+
+ #[inline]
pub fn platform_window(&self) -> *mut libc::c_void {
self.x.window as *mut libc::c_void
}