diff options
author | Pierre Krieger <pierre.krieger1708@gmail.com> | 2014-07-31 17:01:58 +0200 |
---|---|---|
committer | Pierre Krieger <pierre.krieger1708@gmail.com> | 2014-07-31 17:01:58 +0200 |
commit | 0c76ff877106dd71972b8e0c47a0a8ba2e5e7099 (patch) | |
tree | 1c3eb78b7048360144c43abf54836abb96ee32bb /src/x11/ffi.rs | |
parent | 37c5b5446b4dcb6163a9c3119f9c8ca7cbf986c8 (diff) | |
download | glutin-0c76ff877106dd71972b8e0c47a0a8ba2e5e7099.tar.gz glutin-0c76ff877106dd71972b8e0c47a0a8ba2e5e7099.zip |
Add get_position and get_inner_size for 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 4a72ca3..aa7ed4f 100644 --- a/src/x11/ffi.rs +++ b/src/x11/ffi.rs @@ -9,6 +9,7 @@ pub type Bool = libc::c_int; pub type Colormap = XID; pub type Cursor = XID; pub type Display = (); +pub type Drawable = XID; // TODO: not sure pub type GLXContext = *const (); pub type GLXContextID = XID; pub type GLXDrawable = XID; @@ -1326,6 +1327,10 @@ extern "C" { pub fn XDefaultScreen(display: *mut Display) -> libc::c_int; pub fn XDestroyWindow(display: *mut Display, w: Window); pub fn XFlush(display: *mut Display); + pub fn XGetGeometry(display: *mut Display, d: Drawable, root_return: *mut Window, + x_return: *mut libc::c_int, y_return: *mut libc::c_int, + width_return: *mut libc::c_uint, height_return: *mut libc::c_uint, + border_width_return: *mut libc::c_uint, depth_return: *mut libc::c_uint) -> Status; pub fn XInternAtom(display: *mut Display, atom_name: *const libc::c_char, only_if_exists: Bool) -> Atom; pub fn XKeycodeToKeysym(display: *mut Display, keycode: KeyCode, |