From b532b8c65fd1828fd7d742d0994c6118880d07f0 Mon Sep 17 00:00:00 2001 From: Bryan Bell Date: Mon, 12 Jan 2015 16:22:37 -0800 Subject: 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. --- src/osx/mod.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/osx') diff --git a/src/osx/mod.rs b/src/osx/mod.rs index df62089..2052286 100644 --- a/src/osx/mod.rs +++ b/src/osx/mod.rs @@ -491,4 +491,8 @@ impl Window { pub fn set_window_resize_callback(&mut self, callback: Option) { self.resize = callback; } + + pub fn set_cursor(&self, cursor: MouseCursor) { + unimplemented!() + } } -- cgit v1.2.3