MCPcopy Create free account
hub / github.com/SpartanJ/eepp / updateIMELocation

Method updateIMELocation

src/eepp/ui/uitextinput.cpp:926–933  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

924}
925
926void 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
935Uint32 UITextInput::onTextEditing( const TextEditingEvent& event ) {
936 UITextView::onTextEditing( event );

Callers

nothing calls this directly

Calls 7

getActiveClientMethod · 0.80
setLocationMethod · 0.80
getFontHeightMethod · 0.45
getFontMethod · 0.45
getCharacterSizeMethod · 0.45
getWindowMethod · 0.45
asIntMethod · 0.45

Tested by

no test coverage detected