Changeset View
Changeset View
Standalone View
Standalone View
intern/ghost/intern/GHOST_ImeWin32.h
| Show First 20 Lines • Show All 150 Lines • ▼ Show 20 Lines | public: | ||||
| * Return values | * Return values | ||||
| * * true | * * true | ||||
| * The given input language has IMEs. | * The given input language has IMEs. | ||||
| * * false | * * false | ||||
| * The given input language does not have IMEs. | * The given input language does not have IMEs. | ||||
| */ | */ | ||||
| bool SetInputLanguage(); | bool SetInputLanguage(); | ||||
| /* Returns the current input language id. */ | |||||
| WORD GetInputLanguage(); | |||||
| /* Saves the current conversion status. */ | |||||
| void UpdateConversionStatus(HWND window_handle); | |||||
| /* Is the IME currently in conversion mode? */ | |||||
| bool IsEnglishMode(); | |||||
| /* Checks a key whether IME has to do handling. */ | |||||
| bool IsImeKeyEvent(char ascii); | |||||
| /** | /** | ||||
| * Create the IME windows, and allocate required resources for them. | * Create the IME windows, and allocate required resources for them. | ||||
| * Parameters | * Parameters | ||||
| * * window_handle [in] (HWND) | * * window_handle [in] (HWND) | ||||
| * Represents the window handle of the caller. | * Represents the window handle of the caller. | ||||
| */ | */ | ||||
| void CreateImeWindow(HWND window_handle); | void CreateImeWindow(HWND window_handle); | ||||
| ▲ Show 20 Lines • Show All 199 Lines • ▼ Show 20 Lines | private: | ||||
| * * "ja-JP" (0x0411) | * * "ja-JP" (0x0411) | ||||
| * MAKELANGID(LANG_JAPANESE, SUBLANG_JAPANESE_JAPAN), etc. | * MAKELANGID(LANG_JAPANESE, SUBLANG_JAPANESE_JAPAN), etc. | ||||
| * (See `winnt.h` for other available values.) | * (See `winnt.h` for other available values.) | ||||
| * This Language ID is used for processing language-specific operations in | * This Language ID is used for processing language-specific operations in | ||||
| * IME functions. | * IME functions. | ||||
| */ | */ | ||||
| LANGID input_language_id_; | LANGID input_language_id_; | ||||
| /* Current Conversion Mode Values. Retrieved with ImmGetConversionStatus. */ | |||||
| DWORD conversion_modes_; | |||||
| /* Current Sentence Mode. Retrieved with ImmGetConversionStatus. */ | |||||
| DWORD sentence_mode_; | |||||
| /** | /** | ||||
| * Represents whether or not the current input context has created a system | * Represents whether or not the current input context has created a system | ||||
| * caret to set the position of its IME candidate window. | * caret to set the position of its IME candidate window. | ||||
| * * true: it creates a system caret. | * * true: it creates a system caret. | ||||
| * * false: it does not create a system caret. | * * false: it does not create a system caret. | ||||
| */ | */ | ||||
| bool system_caret_; | bool system_caret_; | ||||
| /* The rectangle of the input caret retrieved from a renderer process. */ | /* The rectangle of the input caret retrieved from a renderer process. */ | ||||
| GHOST_Rect caret_rect_; | GHOST_Rect caret_rect_; | ||||
| /* used for disable ime when start up */ | /* used for disable ime when start up */ | ||||
| bool is_first, is_enable; | bool is_first, is_enable; | ||||
| }; | }; | ||||
| #endif // WITH_INPUT_IME | #endif // WITH_INPUT_IME | ||||