Changeset View
Changeset View
Standalone View
Standalone View
intern/ghost/intern/GHOST_ImeWin32.h
| Show All 26 Lines | |||||
| /** \file ghost/intern/GHOST_ImeWin32.h | /** \file ghost/intern/GHOST_ImeWin32.h | ||||
| * \ingroup GHOST | * \ingroup GHOST | ||||
| */ | */ | ||||
| #ifndef __GHOST_IME_H__ | #ifndef __GHOST_IME_H__ | ||||
| #define __GHOST_IME_H__ | #define __GHOST_IME_H__ | ||||
| #ifdef WITH_INPUT_IME | #ifdef WITH_IM_ONTHESPOT | ||||
| #define WIN32_LEAN_AND_MEAN | #define WIN32_LEAN_AND_MEAN | ||||
| #include <windows.h> | #include <windows.h> | ||||
| #include <string> | #include <string> | ||||
| #include "GHOST_Event.h" | #include "GHOST_Event.h" | ||||
| #include "GHOST_Rect.h" | #include "GHOST_Rect.h" | ||||
| ▲ Show 20 Lines • Show All 274 Lines • ▼ Show 20 Lines | public: | ||||
| /* Updatg resultInfo and compInfo */ | /* Updatg 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_TEventIMData eventImeData; | ||||
| 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 || | return (attribute == ATTR_TARGET_CONVERTED || | ||||
| attribute == ATTR_TARGET_NOTCONVERTED); | attribute == ATTR_TARGET_NOTCONVERTED); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 61 Lines • ▼ Show 20 Lines | private: | ||||
| /* 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_IM_ONTHESPOT | ||||
| #endif // __GHOST_IME_H__ | #endif // __GHOST_IME_H__ | ||||