diff options
author | Pierre Krieger <pierre.krieger1708@gmail.com> | 2014-07-28 15:06:38 +0200 |
---|---|---|
committer | Pierre Krieger <pierre.krieger1708@gmail.com> | 2014-07-28 15:06:38 +0200 |
commit | 67349d717a3fbe3dd497b349b399fb2f4e726665 (patch) | |
tree | ca4edd3339f2b07dca3a99365d3d129242eb11a2 /src/x11/ffi.rs | |
parent | c1da2b1273cb1154625a942633bdc2d09b64d680 (diff) | |
download | glutin-67349d717a3fbe3dd497b349b399fb2f4e726665.tar.gz glutin-67349d717a3fbe3dd497b349b399fb2f4e726665.zip |
Better events handling on X11
Diffstat (limited to 'src/x11/ffi.rs')
-rw-r--r-- | src/x11/ffi.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/x11/ffi.rs b/src/x11/ffi.rs index 553c62e..4a72ca3 100644 --- a/src/x11/ffi.rs +++ b/src/x11/ffi.rs @@ -1311,6 +1311,10 @@ pub struct XButtonEvent { #[link(name = "X11")] extern "C" { pub fn XCloseDisplay(display: *mut Display); + pub fn XCheckMaskEvent(display: *mut Display, event_mask: libc::c_long, + event_return: *mut XEvent) -> Bool; + pub fn XCheckTypedEvent(display: *mut Display, event_type: libc::c_int, + event_return: *mut XEvent) -> Bool; pub fn XCreateColormap(display: *mut Display, w: Window, visual: *mut Visual, alloc: libc::c_int) -> Colormap; pub fn XCreateWindow(display: *mut Display, parent: Window, x: libc::c_int, @@ -1329,6 +1333,7 @@ extern "C" { pub fn XMapWindow(display: *mut Display, w: Window); pub fn XNextEvent(display: *mut Display, event_return: *mut XEvent); pub fn XOpenDisplay(display_name: *const libc::c_char) -> *mut Display; + pub fn XPeekEvent(display: *mut Display, event_return: *mut XEvent); pub fn XSetWMProtocols(display: *mut Display, w: Window, protocols: *mut Atom, count: libc::c_int) -> Status; pub fn XStoreName(display: *mut Display, w: Window, window_name: *const libc::c_char); |