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

Method setTextSelectionRange

src/eepp/ui/uirichtext.cpp:809–813  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

807}
808
809void 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
815String UIRichText::getSelectionString() const {
816 return mRichText.getSelectionString();

Callers 3

UTESTFunction · 0.45
UTESTFunction · 0.45
testTextRenderingFunction · 0.45

Calls 3

selCurInitFunction · 0.85
selCurEndFunction · 0.85
getCharacterCountMethod · 0.80

Tested by 3

UTESTFunction · 0.36
UTESTFunction · 0.36
testTextRenderingFunction · 0.36