| 807 | } |
| 808 | |
| 809 | void UIRichText::setTextSelectionRange( TextSelectionRange range ) { |
| 810 | selCurInit( std::clamp( range.start, (Int64)0, mRichText.getCharacterCount() ) ); |
| 811 | selCurEnd( std::clamp( range.end, (Int64)0, mRichText.getCharacterCount() ) ); |
| 812 | onSelectionChange(); |
| 813 | } |
| 814 | |
| 815 | String UIRichText::getSelectionString() const { |
| 816 | return mRichText.getSelectionString(); |