diff options
author | Bryan Bell <bryan.w.bell@gmail.com> | 2015-01-12 16:22:37 -0800 |
---|---|---|
committer | Bryan Bell <bryan.w.bell@gmail.com> | 2015-01-12 16:22:37 -0800 |
commit | b532b8c65fd1828fd7d742d0994c6118880d07f0 (patch) | |
tree | 21931aaa0baf32a3da5b0a2f37ff213842d5a9c7 /src/android | |
parent | 318f0d2d0662194d84836899d3077b33f0f8196f (diff) | |
download | glutin-b532b8c65fd1828fd7d742d0994c6118880d07f0.tar.gz glutin-b532b8c65fd1828fd7d742d0994c6118880d07f0.zip |
Add mouse cursor support
Add a new api, window.set_cursor, for setting the cursor. The enum MouseCursor lists the possible cursors.
Only X11 is implemented. On OSX, Android, & Win32 the window.set_cursor function
either does nothing or calls the "unimplemented!" macro.
Diffstat (limited to 'src/android')
-rw-r--r-- | src/android/mod.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/android/mod.rs b/src/android/mod.rs index 0dbe164..0c88709 100644 --- a/src/android/mod.rs +++ b/src/android/mod.rs @@ -280,6 +280,9 @@ impl Window { pub fn set_window_resize_callback(&mut self, _: Option<fn(uint, uint)>) { } + + pub fn set_cursor(&self, cursor: MouseCursor) { + } } unsafe impl Send for Window {} |