MCPcopy Create free account
hub / github.com/MyGUI/mygui / getCursorCoord

Method getCursorCoord

MyGUIEngine/src/MyGUI_EditText.cpp:423–437  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

421 }
422
423 IntCoord EditText::getCursorCoord(size_t _position) const
424 {
425 if (nullptr == mFont)
426 return {};
427
428 if (mTextOutDate)
429 updateRawData();
430
431 IntPoint point = mTextView.getCursorPoint(_position);
432 point += mCroppedParent->getAbsolutePosition();
433 point -= mViewOffset;
434 point += mCoord.point();
435
436 return {point.left, point.top, 2, mFontHeight};
437 }
438
439 void EditText::setShiftText(bool _value)
440 {

Callers

nothing calls this directly

Calls 2

getCursorPointMethod · 0.80
pointMethod · 0.45

Tested by

no test coverage detected