From 332dc1b7acfedbf80b71cc6f538a14f24d435df3 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Mon, 16 Jun 2014 11:17:57 +0000 Subject: Add method to set any custom cursor, based on a Fl_RGB_Image object. Also change our fallback cursors to use this method, so that fallback cursors are handled in a platform independent manner. STR #2660. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10196 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- FL/mac.H | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'FL/mac.H') diff --git a/FL/mac.H b/FL/mac.H index 734786e45..f02094427 100644 --- a/FL/mac.H +++ b/FL/mac.H @@ -142,7 +142,8 @@ public: void collapse(void); WindowRef window_ref(void); void set_key_window(void); - void set_cursor(Fl_Cursor); + int set_cursor(Fl_Cursor); + int set_cursor(const Fl_RGB_Image*, int, int); static CGImageRef CGImage_from_window_rect(Fl_Window *win, int x, int y, int w, int h); static unsigned char *bitmap_from_window_rect(Fl_Window *win, int x, int y, int w, int h, int *bytesPerPixel); static CFDataRef CGBitmapContextToTIFF(CGContextRef c); -- cgit v1.2.3