Changeset View
Changeset View
Standalone View
Standalone View
intern/ghost/intern/GHOST_ImeWin32.cpp
| Context not available. | |||||
| system_caret_(false), | system_caret_(false), | ||||
| caret_rect_(-1, -1, 0, 0), | caret_rect_(-1, -1, 0, 0), | ||||
| is_first(true), | is_first(true), | ||||
| is_enable(true) | is_enable(false) | ||||
| { | { | ||||
| } | } | ||||
| Context not available. | |||||
| { | { | ||||
| } | } | ||||
| void GHOST_ImeWin32::SetEnable() | |||||
| { | |||||
| is_enable = true; | |||||
| } | |||||
| void GHOST_ImeWin32::SetDisable() | |||||
| { | |||||
| is_enable = false; | |||||
| } | |||||
| void GHOST_ImeWin32::UpdateInputLanguage() | void GHOST_ImeWin32::UpdateInputLanguage() | ||||
| { | { | ||||
| /* Get the current input locale full name. */ | /* Get the current input locale full name. */ | ||||
| Context not available. | |||||
| * For this case, we have to complete the ongoing composition and | * For this case, we have to complete the ongoing composition and | ||||
| * clean up the resources attached to this object BEFORE DISABLING THE IME. | * clean up the resources attached to this object BEFORE DISABLING THE IME. | ||||
| */ | */ | ||||
| if (!is_enable) | |||||
| return; | |||||
| is_enable = false; | |||||
| CleanupComposition(window_handle); | CleanupComposition(window_handle); | ||||
| ::ImmAssociateContextEx(window_handle, NULL, 0); | ::ImmAssociateContextEx(window_handle, NULL, 0); | ||||
| eventImeData.composite_len = 0; | eventImeData.composite_len = 0; | ||||
| Context not available. | |||||