Changeset View
Changeset View
Standalone View
Standalone View
intern/ghost/GHOST_C-api.h
| Show First 20 Lines • Show All 92 Lines • ▼ Show 20 Lines | |||||
| /** | /** | ||||
| * Returns the suggested DPI for this window. | * Returns the suggested DPI for this window. | ||||
| */ | */ | ||||
| extern GHOST_TUns16 GHOST_GetDPIHint(GHOST_WindowHandle windowhandle); | extern GHOST_TUns16 GHOST_GetDPIHint(GHOST_WindowHandle windowhandle); | ||||
| /** | /** | ||||
| * Enable IME attached to the given window, i.e. allows user-input | * Enable IME attached to the given window, i.e. allows user-input | ||||
| * events to be dispatched to the IME. | * events to be dispatched to the IME. | ||||
| * \param windowhandle: Window handle of the caller. | * \param windowhandle: The handle to the window. | ||||
| */ | |||||
| extern void GHOST_BeginIME(GHOST_WindowHandle windowhandle); | |||||
| /** | |||||
| * Set location of input method editor, used for placing composition window. | |||||
| * \param windowhandle: The handle to the window. | |||||
| * \param x: Requested x-coordinate of the rectangle. | * \param x: Requested x-coordinate of the rectangle. | ||||
| * \param y: Requested y-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 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, | extern void GHOST_PositionIME(GHOST_WindowHandle windowhandle, | ||||
| GHOST_TInt32 x, | GHOST_TInt32 x, | ||||
| GHOST_TInt32 y, | GHOST_TInt32 y, | ||||
| GHOST_TInt32 w, | GHOST_TInt32 h); | ||||
| GHOST_TInt32 h, | |||||
| int complete); | /** | ||||
| * Cancels an ongoing composition of the input method editor attached to the given window. | |||||
| * Parameters | |||||
| * \param windowhandle: The handle to the window. | |||||
| */ | |||||
| extern void GHOST_CancelIME(GHOST_WindowHandle windowhandle); | |||||
| /** | /** | ||||
| * Disable the IME attached to the given window, i.e. prohibits any user-input | * Disable the IME attached to the given window, i.e. prohibits any user-input | ||||
| * events from being dispatched to the IME. | * events from being dispatched to the IME. | ||||
| * \param windowhandle: The window handle of the caller. | * \param windowhandle: The handle to the window. | ||||
| */ | */ | ||||
| extern void GHOST_EndIME(GHOST_WindowHandle windowhandle); | extern void GHOST_EndIME(GHOST_WindowHandle windowhandle); | ||||
| #ifdef WITH_XR_OPENXR | #ifdef WITH_XR_OPENXR | ||||
| /* XR-context */ | /* XR-context */ | ||||
| /** | /** | ||||
| ▲ Show 20 Lines • Show All 92 Lines • Show Last 20 Lines | |||||