Changeset View
Changeset View
Standalone View
Standalone View
intern/ghost/intern/GHOST_C-api.cpp
| Show First 20 Lines • Show All 914 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_IM_OVERTHESPOT | ||||
| int GHOST_IsIMSpotNeeded(GHOST_WindowHandle windowhandle) | |||||
| { | |||||
| GHOST_IWindow *window = (GHOST_IWindow *) windowhandle; | |||||
| return window->isIMSpotNeeded(); | |||||
| } | |||||
| #endif | |||||
| #if defined(WITH_IM_OVERTHESPOT) || defined(WITH_IM_ONTHESPOT) | |||||
| void GHOST_SetIMModal(GHOST_WindowHandle windowhandle) | |||||
| { | |||||
| GHOST_IWindow *window = (GHOST_IWindow *) windowhandle; | |||||
| window->setIMModal(); | |||||
| } | |||||
| void GHOST_BeginIME(GHOST_WindowHandle windowhandle, | void GHOST_UnsetIMModal(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->unsetIMModal(); | ||||
| } | } | ||||
| void GHOST_EndIME(GHOST_WindowHandle windowhandle) | void GHOST_SetIMSpot(GHOST_WindowHandle windowhandle, GHOST_TInt32 x, GHOST_TInt32 y, GHOST_TInt32 h) | ||||
| { | { | ||||
| GHOST_IWindow *window = (GHOST_IWindow *) windowhandle; | GHOST_IWindow *window = (GHOST_IWindow *) windowhandle; | ||||
| window->endIME(); | window->setIMSpot(x, y, h); | ||||
| } | } | ||||
| #endif /* WITH_INPUT_IME */ | void GHOST_BeginIM(GHOST_WindowHandle windowhandle) | ||||
| { | |||||
| GHOST_IWindow *window = (GHOST_IWindow *) windowhandle; | |||||
| window->beginIM(); | |||||
| } | |||||
| void GHOST_EndIM(GHOST_WindowHandle windowhandle) | |||||
| { | |||||
| GHOST_IWindow *window = (GHOST_IWindow *) windowhandle; | |||||
| window->endIM(); | |||||
| } | |||||
| #endif /* defined(WITH_IM_OVERTHESPOT) || defined(WITH_IM_ONTHESPOT) */ | |||||