summaryrefslogtreecommitdiff
path: root/src/lib/ecore_cocoa/Ecore_Cocoa.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/ecore_cocoa/Ecore_Cocoa.h')
-rw-r--r--src/lib/ecore_cocoa/Ecore_Cocoa.h34
1 files changed, 33 insertions, 1 deletions
diff --git a/src/lib/ecore_cocoa/Ecore_Cocoa.h b/src/lib/ecore_cocoa/Ecore_Cocoa.h
index b9a534a..42bc61d 100644
--- a/src/lib/ecore_cocoa/Ecore_Cocoa.h
+++ b/src/lib/ecore_cocoa/Ecore_Cocoa.h
@@ -34,7 +34,6 @@
34# define EAPI 34# define EAPI
35#endif 35#endif
36 36
37#include "Ecore_Cocoa_Cursor.h"
38 37
39#ifdef __cplusplus 38#ifdef __cplusplus
40extern "C" { 39extern "C" {
@@ -84,6 +83,39 @@ typedef struct _Ecore_Cocoa_Event_Window_Unfocused Ecore_Cocoa_Event_Window_Unfo
84 */ 83 */
85typedef struct _Ecore_Cocoa_Event_Window_Destroy Ecore_Cocoa_Event_Window_Destroy; 84typedef struct _Ecore_Cocoa_Event_Window_Destroy Ecore_Cocoa_Event_Window_Destroy;
86 85
86/**
87 * @typedef Ecore_Cocoa_Cursor
88 * Values of the Cocoa cursors handled by Ecore_Cocoa
89 * See https://developer.apple.com/library/mac/documentation/Cocoa/Reference/ApplicationKit/Classes/NSCursor_Class/index.html for images of each cursors.
90 */
91typedef enum
92{
93 ECORE_COCOA_CURSOR_ARROW = 0, /**< Arrow cursor */
94 ECORE_COCOA_CURSOR_CONTEXTUAL_MENU, /**< Contextual menu cursor */
95 ECORE_COCOA_CURSOR_CLOSED_HAND, /**< Closed hand cursor */
96 ECORE_COCOA_CURSOR_CROSSHAIR, /**< Crosshair cursor */
97 ECORE_COCOA_CURSOR_DISAPPEARING_ITEM, /**< Disappearing item cursor */
98 ECORE_COCOA_CURSOR_DRAG_COPY, /** Drag copy cursor */
99 ECORE_COCOA_CURSOR_DRAG_LINK, /**< Drag link cursor */
100 ECORE_COCOA_CURSOR_IBEAM, /**< IBeam cursor */
101 ECORE_COCOA_CURSOR_OPEN_HAND, /**< Open hand cursor */
102 ECORE_COCOA_CURSOR_OPERATION_NOT_ALLOWED, /**< Operation not allowed cursor */
103 ECORE_COCOA_CURSOR_POINTING_HAND, /**< Pointing hand cursor */
104 ECORE_COCOA_CURSOR_RESIZE_DOWN, /**< Resize down cursor */
105 ECORE_COCOA_CURSOR_RESIZE_LEFT, /**< Resize left cursor */
106 ECORE_COCOA_CURSOR_RESIZE_LEFT_RIGHT, /**< Resize left right cursor */
107 ECORE_COCOA_CURSOR_RESIZE_RIGHT, /**< Resize right cursor */
108 ECORE_COCOA_CURSOR_RESIZE_UP, /**< Resize up cursor */
109 ECORE_COCOA_CURSOR_RESIZE_UP_DOWN, /**< Resize up down cursor */
110 ECORE_COCOA_CURSOR_IBEAM_VERTICAL, /**< IBeam vertical cursor */
111
112 __ECORE_COCOA_CURSOR_LAST, /**< Sentinel. DO NOT USE */
113
114 ECORE_COCOA_CURSOR_DEFAULT = ECORE_COCOA_CURSOR_ARROW /**< Default Cocoa cursor */
115
116} Ecore_Cocoa_Cursor;
117
118
87/** Event triggered when a Cocoa window receives focus */ 119/** Event triggered when a Cocoa window receives focus */
88EAPI extern int ECORE_COCOA_EVENT_WINDOW_FOCUSED; 120EAPI extern int ECORE_COCOA_EVENT_WINDOW_FOCUSED;
89 121