MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / setText

Method setText

Engine/source/gui/controls/guiTextEditCtrl.cpp:278–289  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

276}
277
278void GuiTextEditCtrl::setText( const UTF8 *txt )
279{
280 if(txt && txt[0] != 0)
281 {
282 Parent::setText(txt);
283 mTextBuffer.set( txt );
284 }
285 else
286 mTextBuffer.set( "" );
287
288 mCursorPos = mTextBuffer.length();
289}
290
291void GuiTextEditCtrl::setText( const UTF16* txt)
292{

Callers 1

Calls 4

createUTF8stringFunction · 0.85
setTextFunction · 0.70
setMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected