Changeset View
Changeset View
Standalone View
Standalone View
intern/ghost/intern/GHOST_WindowWin32.cpp
| Show First 20 Lines • Show All 1,079 Lines • ▼ Show 20 Lines | |||||
| { | { | ||||
| if (m_Bar && S_OK == m_Bar->SetProgressState(m_hWnd, TBPF_NOPROGRESS)) | if (m_Bar && S_OK == m_Bar->SetProgressState(m_hWnd, TBPF_NOPROGRESS)) | ||||
| return GHOST_kSuccess; | return GHOST_kSuccess; | ||||
| return GHOST_kFailure; | return GHOST_kFailure; | ||||
| } | } | ||||
| #ifdef WITH_INPUT_IME | #ifdef WITH_IM_ONTHESPOT | ||||
| void GHOST_WindowWin32::beginIME(GHOST_TInt32 x, GHOST_TInt32 y, GHOST_TInt32 w, GHOST_TInt32 h, int completed) | void GHOST_WindowWin32::setIMSpot(GHOST_TInt32 x, GHOST_TInt32 y, GHOST_TInt32 h) | ||||
| { | { | ||||
| m_imeInput.BeginIME(m_hWnd, GHOST_Rect(x, y - h, x, y), (bool)completed); | if (m_im_modal) | ||||
| return; | |||||
| /* adjust location of composition window */ | |||||
| x += 5; | |||||
| y -= 1; | |||||
| m_imeInput.BeginIME(m_hWnd, GHOST_Rect(x, y - h, x, y), false); | |||||
| } | } | ||||
| void GHOST_WindowWin32::beginIM() | |||||
| { | |||||
| if (m_im_modal) | |||||
| return; | |||||
| void GHOST_WindowWin32::endIME() | /* coordinate -1 means don't set location */ | ||||
| m_imeInput.BeginIME(m_hWnd, GHOST_Rect(-1, -1, 0, 0), true); | |||||
| } | |||||
| void GHOST_WindowWin32::endIM() | |||||
| { | { | ||||
| if (m_im_modal) | |||||
| return; | |||||
| m_imeInput.EndIME(m_hWnd); | m_imeInput.EndIME(m_hWnd); | ||||
| } | } | ||||
| #endif /* WITH_INPUT_IME */ | #endif /* WITH_IM_ONTHESPOT */ | ||||