ecore_cocoa: move the default cursor definition out of the enum

This makes the code more explicit and less awkward.
This commit is contained in:
Jean Guyomarc'h 2016-06-07 21:08:08 +02:00
parent 7b29dff87e
commit 7ada74abcd
1 changed files with 9 additions and 4 deletions

View File

@ -109,13 +109,18 @@ typedef enum
ECORE_COCOA_CURSOR_RESIZE_UP_DOWN, /**< Resize up down cursor */
ECORE_COCOA_CURSOR_IBEAM_VERTICAL, /**< IBeam vertical cursor */
__ECORE_COCOA_CURSOR_LAST, /**< Sentinel. DO NOT USE */
ECORE_COCOA_CURSOR_DEFAULT = ECORE_COCOA_CURSOR_ARROW /**< Default Cocoa cursor */
__ECORE_COCOA_CURSOR_LAST /**< Sentinel. DO NOT USE */
} Ecore_Cocoa_Cursor;
/**
* @def ECORE_COCOA_CURSOR_DEFAULT
* Defines the default Cocoa cursor, to be used when nothing
* is specified or as a fallback.
*/
#define ECORE_COCOA_CURSOR_DEFAULT ECORE_COCOA_CURSOR_ARROW
/** Event triggered when a Cocoa window receives focus */
EAPI extern int ECORE_COCOA_EVENT_WINDOW_FOCUSED;