30 # define WIN32_LEAN_AND_MEAN
96 struct ImeComposition {
117 std::wstring ime_string;
118 std::vector<char> utf8_buf;
119 std::vector<unsigned char>
format;
138 class GHOST_ImeWin32 {
144 bool is_composing()
const
146 return is_composing_;
157 bool SetInputLanguage();
165 void CreateImeWindow(HWND window_handle);
187 void SetImeWindowStyle(
188 HWND window_handle,
UINT message, WPARAM wparam, LPARAM lparam, BOOL *handled);
196 void DestroyImeWindow(HWND window_handle);
204 void UpdateImeWindow(HWND window_handle);
213 void CleanupComposition(HWND window_handle);
223 void ResetComposition(HWND window_handle);
246 bool GetResult(HWND window_handle, LPARAM lparam, ImeComposition *composition);
269 bool GetComposition(HWND window_handle, LPARAM lparam, ImeComposition *composition);
293 void BeginIME(HWND window_handle,
const GHOST_Rect &caret_rect,
bool complete);
304 void EndIME(HWND window_handle);
307 void UpdateInfo(HWND window_handle);
310 void CheckFirst(HWND window_handle);
312 ImeComposition resultInfo, compInfo;
317 bool IsTargetAttribute(
char attribute)
const
319 return (attribute == ATTR_TARGET_CONVERTED || attribute == ATTR_TARGET_NOTCONVERTED);
323 void GetCaret(HIMC imm_context, LPARAM lparam, ImeComposition *composition);
326 void MoveImeWindow(HWND window_handle, HIMC imm_context);
329 void CompleteComposition(HWND window_handle, HIMC imm_context);
332 bool GetString(HIMC imm_context, WPARAM lparam,
int type, ImeComposition *composition);
372 LANGID input_language_id_;
386 bool is_first, is_enable;
unsigned long long GHOST_TUns64
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum type
btAlignedObjectArray< btScalar > m_data