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

Method setText

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

Source from the content-addressed store, hash-verified

265}
266
267void GuiTextEditCtrl::setText( const UTF8 *txt )
268{
269 if(txt && txt[0] != 0)
270 {
271 Parent::setText(txt);
272 mTextBuffer.set( txt );
273 }
274 else
275 mTextBuffer.set( "" );
276
277 mCursorPos = mTextBuffer.length();
278}
279
280void GuiTextEditCtrl::setText( const UTF16* txt)
281{

Callers 1

Calls 4

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

Tested by

no test coverage detected