diff options
author | Severin <julian_eisel@web.de> | 2014-12-07 02:58:17 +0300 |
---|---|---|
committer | Severin <julian_eisel@web.de> | 2014-12-07 02:58:17 +0300 |
commit | e81d077c852f43b635f10972479e36909a66d60c (patch) | |
tree | 35eabcec49938e0d66c083354fa6c0c600372a12 /intern/ghost/GHOST_C-api.h | |
parent | 06515475b9c87c553d75481abfa600a0f7a5faf8 (diff) |
Input Method Editor (IME) support for text buttons
Original patch by @random (D765) with some minor work done by @campbell
and me.
At this place, I'd like call out a number of people who were involved and
deserve a big "Thank you!":
* At the first place @randon who developed and submitted the patch
* The Blendercn community which helped a lot with testing - espacially
* @yuzukyo, @leon_cheung and @kjym3
* @campbellbarton, @mont29 and @sergey for their help and advises during
* review
* @ton who realized the importance of this early on and asked me for
* reviewing
We are still not finished, as this is only the first part of the
implementaion, but there's more to come!
Diffstat (limited to 'intern/ghost/GHOST_C-api.h')
-rw-r--r-- | intern/ghost/GHOST_C-api.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/intern/ghost/GHOST_C-api.h b/intern/ghost/GHOST_C-api.h index 7b47f0526a2..c0f2651dd8b 100644 --- a/intern/ghost/GHOST_C-api.h +++ b/intern/ghost/GHOST_C-api.h @@ -897,6 +897,30 @@ extern int GHOST_UseNativePixels(void); */ extern float GHOST_GetNativePixelSize(GHOST_WindowHandle windowhandle); +/** + * Enable IME attached to the given window, i.e. allows user-input + * events to be dispatched to the IME. + * \param windowhandle Window handle of the caller + * \param x Requested x-coordinate of the rectangle + * \param y Requested y-coordinate of the rectangle + * \param w Requested width of the rectangle + * \param h Requested height of the rectangle + * \param complete Whether or not to complete the ongoing composition + * true: Start a new composition + * false: Move the IME windows to the given position without finishing it. + */ +extern void GHOST_BeginIME(GHOST_WindowHandle windowhandle, + GHOST_TInt32 x, + GHOST_TInt32 y, + GHOST_TInt32 w, + GHOST_TInt32 h, + int complete); +/** + * Disable the IME attached to the given window, i.e. prohibits any user-input + * events from being dispatched to the IME. + * \param windowhandle The window handle of the caller + */ +extern void GHOST_EndIME(GHOST_WindowHandle windowhandle); #ifdef __cplusplus } |