diff options
Diffstat (limited to 'intern/ghost/GHOST_Types.h')
-rw-r--r-- | intern/ghost/GHOST_Types.h | 40 |
1 files changed, 34 insertions, 6 deletions
diff --git a/intern/ghost/GHOST_Types.h b/intern/ghost/GHOST_Types.h index 7333ba025a5..7a73af3f249 100644 --- a/intern/ghost/GHOST_Types.h +++ b/intern/ghost/GHOST_Types.h @@ -50,6 +50,18 @@ typedef unsigned short GHOST_TUns16; typedef int GHOST_TInt32; typedef unsigned int GHOST_TUns32; +typedef struct { + GHOST_TUns16 numOfAASamples; + int flags; +} GHOST_GLSettings; + +typedef enum { + GHOST_glStereoVisual = (1 << 0), + GHOST_glWarnSupport = (1 << 1), + GHOST_glDebugContext = (1 << 2), +} GHOST_GLFlags; + + #ifdef _MSC_VER typedef __int64 GHOST_TInt64; typedef unsigned __int64 GHOST_TUns64; @@ -115,12 +127,8 @@ typedef enum { GHOST_kWindowStateMinimized, GHOST_kWindowStateFullScreen, GHOST_kWindowStateEmbedded, - GHOST_kWindowState8Normal = 8, - GHOST_kWindowState8Maximized, - GHOST_kWindowState8Minimized, - GHOST_kWindowState8FullScreen, - GHOST_kWindowStateModified, - GHOST_kWindowStateUnModified + // GHOST_kWindowStateModified, + // GHOST_kWindowStateUnModified, } GHOST_TWindowState; @@ -190,6 +198,10 @@ typedef enum { GHOST_kEventTimer, + GHOST_kEventImeCompositionStart, + GHOST_kEventImeComposition, + GHOST_kEventImeCompositionEnd, + GHOST_kNumEventTypes } GHOST_TEventType; @@ -436,6 +448,22 @@ typedef struct { GHOST_TEventDataPtr data; } GHOST_TEventDragnDropData; +/** similar to wmImeData */ +typedef struct { + /** size_t */ + GHOST_TUserDataPtr result_len, composite_len; + /** char * utf8 encoding */ + GHOST_TUserDataPtr result, composite; + /** Cursor position in the IME composition. */ + int cursor_position; + /** Represents the position of the beginning of the selection */ + int target_start; + /** Represents the position of the end of the selection */ + int target_end; + /** custom temporal data */ + GHOST_TUserDataPtr tmp; +} GHOST_TEventImeData; + typedef struct { int count; GHOST_TUns8 **strings; |