summaryrefslogtreecommitdiffstats
path: root/vncviewer/Viewport.h
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2011-06-08 17:02:36 +0000
committerPierre Ossman <ossman@cendio.se>2011-06-08 17:02:36 +0000
commit835b4ef7cdf7df1f91aa0d337a5a4537011d4742 (patch)
tree9131abc63a9f55bc265c6d77aba6bada7911ba71 /vncviewer/Viewport.h
parent494271583e29d6d15036989322c62f88f941bc32 (diff)
downloadtigervnc-835b4ef7cdf7df1f91aa0d337a5a4537011d4742.tar.gz
tigervnc-835b4ef7cdf7df1f91aa0d337a5a4537011d4742.zip
Add support for cursors to the new viewer.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4472 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'vncviewer/Viewport.h')
-rw-r--r--vncviewer/Viewport.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/vncviewer/Viewport.h b/vncviewer/Viewport.h
index 293eb93b..b8f1a789 100644
--- a/vncviewer/Viewport.h
+++ b/vncviewer/Viewport.h
@@ -25,6 +25,7 @@
#include <FL/Fl.H>
#include <FL/Fl_Widget.H>
#include <FL/Fl_Menu_Button.H>
+#include <FL/Fl_RGB_Image.H>
#include <rfb/Rect.h>
#include <rfb/Region.h>
@@ -78,6 +79,9 @@ public:
damageRect(r);
}
+ void setCursor(int width, int height, const rfb::Point& hotspot,
+ void* data, void* mask);
+
// Fl_Widget callback methods
void draw();
@@ -130,6 +134,9 @@ private:
int menuKeyCode;
Fl_Menu_Button *contextMenu;
+
+ Fl_RGB_Image *cursor;
+ rfb::Point cursorHotspot;
};
#endif