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/win32.H | 3 +++ 1 file changed, 3 insertions(+) (limited to 'FL/win32.H') diff --git a/FL/win32.H b/FL/win32.H index b6cd0edfd..3ecdad79e 100644 --- a/FL/win32.H +++ b/FL/win32.H @@ -73,6 +73,7 @@ public: int wait_for_expose; HDC private_dc; // used for OpenGL HCURSOR cursor; + int custom_cursor; HDC saved_hdc; // saves the handle of the DC currently loaded // static variables, static functions and member functions static Fl_X* first; @@ -84,6 +85,8 @@ public: void flush() {w->flush();} void set_minmax(LPMINMAXINFO minmax); void mapraise(); + int set_cursor(Fl_Cursor); + int set_cursor(const Fl_RGB_Image*, int, int); static Fl_X* make(Fl_Window*); }; extern FL_EXPORT HCURSOR fl_default_cursor; -- cgit v1.2.3