| 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 | { |
nothing calls this directly
no test coverage detected