Changeset View
Changeset View
Standalone View
Standalone View
intern/ghost/intern/GHOST_WindowCocoa.mm
| Show First 20 Lines • Show All 1,215 Lines • ▼ Show 20 Lines | #endif | ||||
| [cursorImage release]; | [cursorImage release]; | ||||
| if ([m_window isVisible]) { | if ([m_window isVisible]) { | ||||
| loadCursor(getCursorVisibility(), GHOST_kStandardCursorCustom); | loadCursor(getCursorVisibility(), GHOST_kStandardCursorCustom); | ||||
| } | } | ||||
| [pool drain]; | [pool drain]; | ||||
| return GHOST_kSuccess; | return GHOST_kSuccess; | ||||
| } | } | ||||
| #ifdef WITH_INPUT_IME | |||||
| void GHOST_WindowCocoa::beginIME( | |||||
| GHOST_TInt32 x, GHOST_TInt32 y, GHOST_TInt32 w, GHOST_TInt32 h, int completed) | |||||
| { | |||||
| /* From Native pixel coordinate to Widnow coordinate */ | |||||
| int scaleFactor = (int)[m_window backingScaleFactor]; | |||||
| x /= scaleFactor; | |||||
| y /= scaleFactor; | |||||
| if (m_openGLView) { | |||||
| [m_openGLView beginIME:x y:y w:w h:h completed:(bool)completed]; | |||||
| }else { | |||||
| [m_metalView beginIME:x y:y w:w h:h completed:(bool)completed]; | |||||
| } | |||||
| } | |||||
| void GHOST_WindowCocoa::endIME() | |||||
| { | |||||
| if (m_openGLView) { | |||||
| [m_openGLView endIME]; | |||||
| }else { | |||||
| [m_metalView endIME]; | |||||
| } | |||||
| } | |||||
| #endif /* WITH_INPUT_IME */ | |||||
| No newline at end of file | |||||