diff options
author | tomaka <pierre.krieger1708@gmail.com> | 2015-01-13 10:43:46 +0100 |
---|---|---|
committer | tomaka <pierre.krieger1708@gmail.com> | 2015-01-13 10:43:46 +0100 |
commit | 05a03fb6a1232621e570fe46a82c6088c74696a9 (patch) | |
tree | f066387449265cb233fbc6040a0902a6a4df9360 /src/x11/ffi.rs | |
parent | 88fd84f5952ba9fc758957bdc55b911ec694d46b (diff) | |
parent | 0fba0a9a734dcc7c30f9c369d6481a9b1d33828c (diff) | |
download | glutin-05a03fb6a1232621e570fe46a82c6088c74696a9.tar.gz glutin-05a03fb6a1232621e570fe46a82c6088c74696a9.zip |
Merge pull request #192 from bjwbell/mouse-cursors
Add mouse cursor support
Diffstat (limited to 'src/x11/ffi.rs')
-rw-r--r-- | src/x11/ffi.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/x11/ffi.rs b/src/x11/ffi.rs index 0528720..5e7b5a1 100644 --- a/src/x11/ffi.rs +++ b/src/x11/ffi.rs @@ -1384,6 +1384,7 @@ extern "C" { #[link(name = "GL")] #[link(name = "X11")] #[link(name = "Xxf86vm")] +#[link(name = "Xcursor")] extern "C" { pub fn XCloseDisplay(display: *mut Display); pub fn XCheckMaskEvent(display: *mut Display, event_mask: libc::c_long, @@ -1454,6 +1455,9 @@ extern "C" { x: libc::c_int, y: libc::c_int) -> Bool; pub fn XF86VidModeGetAllModeLines(dpy: *mut Display, screen: libc::c_int, modecount_return: *mut libc::c_int, modesinfo: *mut *mut *mut XF86VidModeModeInfo) -> Bool; + + pub fn XcursorLibraryLoadCursor(dpy: *mut Display, name: *const libc::c_char) -> Cursor; + pub fn XDefineCursor(dby: *mut Display, w: Window, cursor: Cursor); } /* |