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

Method setTextCursor

MyGUIEngine/src/MyGUI_EditBox.cpp:907–926  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

905 }
906
907 void EditBox::setTextCursor(size_t _index)
908 {
909 // сбрасываем выделение
910 resetSelect();
911
912 // новая позиция
913 if (_index > mTextLength)
914 _index = mTextLength;
915
916 if (mCursorPosition == _index)
917 return;
918
919 mCursorPosition = _index;
920
921 // обновляем по позиции
922 if (mClientText != nullptr)
923 mClientText->setCursorPosition(mCursorPosition);
924
925 updateSelectText();
926 }
927
928 void EditBox::setTextSelection(size_t _start, size_t _end)
929 {

Callers 11

setFunction · 0.80
notifyEditTextChangeMethod · 0.80
_setSuccessTextFunction · 0.80
notifyEditTextChangeMethod · 0.80
setColourMethod · 0.80
setColourMethod · 0.80
setColourMethod · 0.80
setColourMethod · 0.80
setColourMethod · 0.80

Calls 1

setCursorPositionMethod · 0.80

Tested by

no test coverage detected