Changeset View
Changeset View
Standalone View
Standalone View
intern/ghost/intern/GHOST_ImeWin32.h
| Show First 20 Lines • Show All 137 Lines • ▼ Show 20 Lines | public: | ||||
| /* Saves the current conversion status. */ | /* Saves the current conversion status. */ | ||||
| void UpdateConversionStatus(HWND window_handle); | void UpdateConversionStatus(HWND window_handle); | ||||
| /* Is the IME currently in conversion mode? */ | /* Is the IME currently in conversion mode? */ | ||||
| bool IsEnglishMode(); | bool IsEnglishMode(); | ||||
| /* Checks a key whether IME has to do handling. */ | /* Checks a key whether IME has to do handling. */ | ||||
| bool IsImeKeyEvent(char ascii, GHOST_TKey key); | bool IsImeKeyEventCandidateToForward(bool keyDown, GHOST_TKey key); | ||||
| /** | /** | ||||
| * 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 140 Lines • ▼ Show 20 Lines | public: | ||||
| /** Update #resultInfo and #compInfo */ | /** Update #resultInfo and #compInfo */ | ||||
| void UpdateInfo(HWND window_handle); | void UpdateInfo(HWND window_handle); | ||||
| /** Disable IME when start up. */ | /** Disable IME when start up. */ | ||||
| void CheckFirst(HWND window_handle); | void CheckFirst(HWND window_handle); | ||||
| ImeComposition resultInfo, compInfo; | ImeComposition resultInfo, compInfo; | ||||
| GHOST_TEventImeData eventImeData; | GHOST_TEventImeData eventImeData; | ||||
| GHOST_Event *evt_ImeNotHandledEventCandidate; | |||||
| protected: | protected: | ||||
| /* Determines whether or not the given attribute represents a target (a.k.a. a selection). */ | /* Determines whether or not the given attribute represents a target (a.k.a. a selection). */ | ||||
| bool IsTargetAttribute(char attribute) const | bool IsTargetAttribute(char attribute) const | ||||
| { | { | ||||
| return (attribute == ATTR_TARGET_CONVERTED || attribute == ATTR_TARGET_NOTCONVERTED); | return (attribute == ATTR_TARGET_CONVERTED || attribute == ATTR_TARGET_NOTCONVERTED); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 44 Lines • Show Last 20 Lines | |||||