Changeset View
Changeset View
Standalone View
Standalone View
intern/ghost/intern/GHOST_C-api.cpp
| Show First 20 Lines • Show All 92 Lines • ▼ Show 20 Lines | |||||
| GHOST_TUns16 GHOST_GetDPIHint(GHOST_WindowHandle windowhandle) | GHOST_TUns16 GHOST_GetDPIHint(GHOST_WindowHandle windowhandle) | ||||
| { | { | ||||
| GHOST_IWindow *window = (GHOST_IWindow *)windowhandle; | GHOST_IWindow *window = (GHOST_IWindow *)windowhandle; | ||||
| return window->getDPIHint(); | return window->getDPIHint(); | ||||
| } | } | ||||
| #ifdef WITH_INPUT_IME | #ifdef WITH_INPUT_IME | ||||
| void GHOST_BeginIME(GHOST_WindowHandle windowhandle, | void GHOST_BeginIME(GHOST_WindowHandle windowhandle) | ||||
| GHOST_TInt32 x, | |||||
| GHOST_TInt32 y, | |||||
| GHOST_TInt32 w, | |||||
| GHOST_TInt32 h, | |||||
| int complete) | |||||
| { | { | ||||
| GHOST_IWindow *window = (GHOST_IWindow *)windowhandle; | GHOST_IWindow *window = (GHOST_IWindow *)windowhandle; | ||||
| window->beginIME(x, y, w, h, complete); | window->beginIME(); | ||||
| } | |||||
| void GHOST_PositionIME(GHOST_WindowHandle windowhandle, | |||||
| GHOST_TInt32 x, | |||||
| GHOST_TInt32 y, | |||||
| GHOST_TInt32 h) | |||||
| { | |||||
| GHOST_IWindow *window = (GHOST_IWindow *)windowhandle; | |||||
| window->positionIME(x, y, h); | |||||
| } | |||||
| void GHOST_CancelIME(GHOST_WindowHandle windowHandle) | |||||
| { | |||||
| GHOST_IWindow *window = (GHOST_IWindow *)windowHandle; | |||||
| window->cancelIME(); | |||||
| } | } | ||||
| void GHOST_EndIME(GHOST_WindowHandle windowhandle) | void GHOST_EndIME(GHOST_WindowHandle windowhandle) | ||||
| { | { | ||||
| GHOST_IWindow *window = (GHOST_IWindow *)windowhandle; | GHOST_IWindow *window = (GHOST_IWindow *)windowhandle; | ||||
| window->endIME(); | window->endIME(); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 92 Lines • Show Last 20 Lines | |||||