summaryrefslogtreecommitdiffstats
path: root/platform/osx/os_osx.h
diff options
context:
space:
mode:
authorGuilherme Silva <guilhermefelipecgs@gmail.com>2017-11-10 08:50:11 -0200
committerGuilherme Felipe <guilhermefelipecgs@gmail.com>2017-12-17 13:40:29 -0200
commita392dbdbe3f67d42698e47399421fbdf6ae5c90a (patch)
tree0a824a34a62a5f9510850e4e4f451e8c54e5ed46 /platform/osx/os_osx.h
parentfa8a1fc4201dc4c16b5eef844dde17c5bba92dc8 (diff)
downloadredot-engine-a392dbdbe3f67d42698e47399421fbdf6ae5c90a.tar.gz
Add implementation for custom hardware cursor
Diffstat (limited to 'platform/osx/os_osx.h')
-rw-r--r--platform/osx/os_osx.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/platform/osx/os_osx.h b/platform/osx/os_osx.h
index 2381b85658..8dbd216927 100644
--- a/platform/osx/os_osx.h
+++ b/platform/osx/os_osx.h
@@ -41,6 +41,7 @@
#include "servers/visual/rasterizer.h"
#include "servers/visual/visual_server_wrap_mt.h"
#include "servers/visual_server.h"
+#include <AppKit/NSCursor.h>
#include <ApplicationServices/ApplicationServices.h>
#undef CursorShape
@@ -86,6 +87,7 @@ public:
id context;
CursorShape cursor_shape;
+ NSCursor *cursors[CURSOR_MAX] = { NULL };
MouseMode mouse_mode;
String title;
@@ -137,6 +139,7 @@ public:
virtual void alert(const String &p_alert, const String &p_title = "ALERT!");
virtual void set_cursor_shape(CursorShape p_shape);
+ virtual void set_custom_mouse_cursor(const RES &p_cursor, CursorShape p_shape, const Vector2 &p_hotspot);
virtual void set_mouse_show(bool p_show);
virtual void set_mouse_grab(bool p_grab);