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.
This commit is contained in:
Bryan Bell 2015-01-12 16:22:37 -08:00
parent 318f0d2d06
commit b532b8c65f
9 changed files with 174 additions and 3 deletions

View file

@ -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 {}