Changeset View
Changeset View
Standalone View
Standalone View
intern/ghost/GHOST_IWindow.h
| Show First 20 Lines • Show All 92 Lines • ▼ Show 20 Lines | |||||
| /** | /** | ||||
| * Returns the recommended DPI for this window. | * Returns the recommended DPI for this window. | ||||
| * \return The recommended DPI for this window. | * \return The recommended DPI for this window. | ||||
| */ | */ | ||||
| virtual GHOST_TUns16 getDPIHint() = 0; | virtual GHOST_TUns16 getDPIHint() = 0; | ||||
| #ifdef WITH_INPUT_IME | #ifdef WITH_INPUT_IME | ||||
| /** | /** | ||||
| * Enable IME attached to the given window, i.e. allows user-input | * Enable input method editor attached to the given window, i.e. allows user-input | ||||
| * events to be dispatched to the IME. | * events to be dispatched to the input method server. | ||||
| * \param x: Requested x-coordinate of the rectangle. | */ | ||||
| * \param y: Requested y-coordinate of the rectangle. | virtual void beginIME() = 0; | ||||
| * \param w: Requested width of the rectangle. | |||||
| * \param h: Requested height of the rectangle. | /** | ||||
| * \param complete: Whether or not to complete the ongoing composition. | * Set location of input method editor, used for placing composition window. | ||||
| * - true: Start a new composition | * This takes effect when the input method server supports over-the-spot or | ||||
| * - false: Move the IME windows to the given position without finishing it. | * on-the-spot input style. | ||||
| */ | * \param x: Requested x-coordinate that the preedit window will be placed. | ||||
| virtual void beginIME( | * \param y: Requested y-coordinate that the preedit window will be placed. | ||||
| GHOST_TInt32 x, GHOST_TInt32 y, GHOST_TInt32 w, GHOST_TInt32 h, int completed) = 0; | */ | ||||
| virtual void positionIME(GHOST_TInt32 x, GHOST_TInt32 y, GHOST_TInt32 h) = 0; | |||||
| /** | |||||
| * Cancels an ongoing composition of the IME attached to the given window. | |||||
| */ | |||||
| virtual void cancelIME() = 0; | |||||
| /** | /** | ||||
| * 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. | ||||
| */ | */ | ||||
| virtual void endIME() = 0; | virtual void endIME() = 0; | ||||
| #endif /* WITH_INPUT_IME */ | #endif /* WITH_INPUT_IME */ | ||||
| #ifdef WITH_CXX_GUARDEDALLOC | #ifdef WITH_CXX_GUARDEDALLOC | ||||
| MEM_CXX_CLASS_ALLOC_FUNCS("GHOST:GHOST_IWindow") | MEM_CXX_CLASS_ALLOC_FUNCS("GHOST:GHOST_IWindow") | ||||
| #endif | #endif | ||||
| }; | }; | ||||
| Context not available. | |||||