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

Method addToConsole

Demos/Demo_Console/Console.cpp:124–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122 }
123
124 void Console::addToConsole(const MyGUI::UString& _line)
125 {
126 if (mListHistory->getCaption().empty())
127 mListHistory->addText(_line);
128 else
129 mListHistory->addText("\n" + _line);
130
131 //mListHistory->setTextCursor(0);
132 mListHistory->setTextSelection(mListHistory->getTextLength(), mListHistory->getTextLength());
133 }
134
135 void Console::clearConsole()
136 {

Callers 1

commandMethod · 0.80

Calls 5

toStringFunction · 0.85
addTextMethod · 0.80
emptyMethod · 0.45
setTextSelectionMethod · 0.45
getTextLengthMethod · 0.45

Tested by

no test coverage detected