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

Method clear

MyGUIEngine/src/MyGUI_TextIterator.cpp:434–448  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

432 }
433
434 void TextIterator::clear()
435 {
436 if (mText.empty())
437 return;
438
439 // записываем в историю
440 if (mHistory)
441 mHistory->push_back(TextCommandInfo(mText, 0, TextCommandInfo::COMMAND_ERASE));
442
443 // все сбрасываем
444 mText.clear();
445 mCurrent = mText.begin();
446 mEnd = mSave = mText.end();
447 mSize = ITEM_NONE;
448 }
449
450 void TextIterator::cutMaxLength(size_t _max)
451 {

Callers

nothing calls this directly

Calls 5

TextCommandInfoClass · 0.85
emptyMethod · 0.45
push_backMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected