| 13 | } |
| 14 | |
| 15 | void InputMethod::setLocation( Rect rect ) { |
| 16 | #if EE_PLATFORM == EE_PLATFORM_MACOS || EE_PLATFORM == EE_PLATFORM_IOS |
| 17 | rect = PixelDensity::pxToDpI( rect ); |
| 18 | #endif |
| 19 | if ( rect != mLastLocation ) { |
| 20 | mWindow->setTextInputRect( rect ); |
| 21 | mLastLocation = std::move( rect ); |
| 22 | } |
| 23 | } |
| 24 | |
| 25 | bool InputMethod::isEditing() const { |
| 26 | return mEditing; |
no test coverage detected