Changeset View
Changeset View
Standalone View
Standalone View
intern/ghost/GHOST_Types.h
| Show First 20 Lines • Show All 195 Lines • ▼ Show 20 Lines | // GHOST_kEventKeyAuto, | ||||
| GHOST_kEventDraggingExited, | GHOST_kEventDraggingExited, | ||||
| GHOST_kEventDraggingDropDone, | GHOST_kEventDraggingDropDone, | ||||
| GHOST_kEventOpenMainFile, // Needed for Cocoa to open double-clicked .blend file at startup | GHOST_kEventOpenMainFile, // Needed for Cocoa to open double-clicked .blend file at startup | ||||
| GHOST_kEventNativeResolutionChange, // Needed for Cocoa when window moves to other display | GHOST_kEventNativeResolutionChange, // Needed for Cocoa when window moves to other display | ||||
| GHOST_kEventTimer, | GHOST_kEventTimer, | ||||
| GHOST_kEventImeCompositionStart, | GHOST_kEventIMCompositionStart, | ||||
| GHOST_kEventImeComposition, | GHOST_kEventIMComposition, | ||||
| GHOST_kEventImeCompositionEnd, | GHOST_kEventIMCompositionEnd, | ||||
| GHOST_kNumEventTypes | GHOST_kNumEventTypes | ||||
| } GHOST_TEventType; | } GHOST_TEventType; | ||||
| typedef enum { | typedef enum { | ||||
| GHOST_kStandardCursorFirstCursor = 0, | GHOST_kStandardCursorFirstCursor = 0, | ||||
| GHOST_kStandardCursorDefault = 0, | GHOST_kStandardCursorDefault = 0, | ||||
| ▲ Show 20 Lines • Show All 232 Lines • ▼ Show 20 Lines | typedef struct { | ||||
| /** The y-coordinate of the cursor position. */ | /** The y-coordinate of the cursor position. */ | ||||
| GHOST_TInt32 y; | GHOST_TInt32 y; | ||||
| /** The dropped item type */ | /** The dropped item type */ | ||||
| GHOST_TDragnDropTypes dataType; | GHOST_TDragnDropTypes dataType; | ||||
| /** The "dropped content" */ | /** The "dropped content" */ | ||||
| GHOST_TEventDataPtr data; | GHOST_TEventDataPtr data; | ||||
| } GHOST_TEventDragnDropData; | } GHOST_TEventDragnDropData; | ||||
| /** similar to wmImeData */ | /** similar to wmIMData */ | ||||
| typedef struct { | typedef struct { | ||||
| /** size_t */ | /** size_t */ | ||||
| GHOST_TUserDataPtr result_len, composite_len; | GHOST_TUserDataPtr result_len, composite_len; | ||||
| /** char * utf8 encoding */ | /** char * utf8 encoding */ | ||||
| GHOST_TUserDataPtr result, composite; | GHOST_TUserDataPtr result, composite; | ||||
| /** Cursor position in the IME composition. */ | /** Cursor position in the IM composition. */ | ||||
| int cursor_position; | int cursor_position; | ||||
| /** Represents the position of the beginning of the selection */ | /** Represents the position of the beginning of the selection */ | ||||
| int target_start; | int target_start; | ||||
| /** Represents the position of the end of the selection */ | /** Represents the position of the end of the selection */ | ||||
| int target_end; | int target_end; | ||||
| /** custom temporal data */ | /** custom temporal data */ | ||||
| GHOST_TUserDataPtr tmp; | GHOST_TUserDataPtr tmp; | ||||
| } GHOST_TEventImeData; | } GHOST_TEventIMData; | ||||
| typedef struct { | typedef struct { | ||||
| int count; | int count; | ||||
| GHOST_TUns8 **strings; | GHOST_TUns8 **strings; | ||||
| } GHOST_TStringArray; | } GHOST_TStringArray; | ||||
| typedef enum { | typedef enum { | ||||
| GHOST_kNotStarted, | GHOST_kNotStarted, | ||||
| ▲ Show 20 Lines • Show All 82 Lines • Show Last 20 Lines | |||||