| 924 | } |
| 925 | |
| 926 | void UITextInput::updateIMELocation() { |
| 927 | if ( mDoc.getActiveClient() != this || !Engine::isMainThread() ) |
| 928 | return; |
| 929 | Vector2f cursor( eefloor( mScreenPos.x + mRealAlignOffset.x + mCurPos.x + mPaddingPx.Left ), |
| 930 | mScreenPos.y + mRealAlignOffset.y + mCurPos.y + mPaddingPx.Top ); |
| 931 | Float h = mTextCache.getFont()->getFontHeight( mTextCache.getCharacterSize() ); |
| 932 | getUISceneNode()->getWindow()->getIME().setLocation( Rectf( cursor, { 0, h } ).asInt() ); |
| 933 | } |
| 934 | |
| 935 | Uint32 UITextInput::onTextEditing( const TextEditingEvent& event ) { |
| 936 | UITextView::onTextEditing( event ); |
nothing calls this directly
no test coverage detected