diff options
author | tomaka <pierre.krieger1708@gmail.com> | 2015-10-03 10:11:11 +0200 |
---|---|---|
committer | tomaka <pierre.krieger1708@gmail.com> | 2015-10-03 10:11:11 +0200 |
commit | c8fd077e17f7a7147d6877f2343c82790b187bd2 (patch) | |
tree | 5ecb913e185ea471fb6f3892537b0f5677614ee1 /src/api | |
parent | 5e1e7436af2b06350d30420c43e8b4a0dcf8ddfe (diff) | |
parent | 8c6a27d42615fc97b1aed31c20c3aff3d25c88d4 (diff) | |
download | glutin-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.rs | 10 |
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 } |