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

Method setText

Engine/source/gui/controls/guiTreeViewCtrl.cpp:299–314  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

297//-----------------------------------------------------------------------------
298
299void GuiTreeViewCtrl::Item::setText(StringTableEntry txt)
300{
301 if(mState.test(InspectorData))
302 {
303 Con::errorf("Tried to set text for item %d, which is InspectorData!", mId);
304 return;
305 }
306
307 mScriptInfo.mText = txt;
308
309
310 // Update Render Data
311 if( !mProfile.isNull() )
312 mDataRenderWidth = getDisplayTextWidth( mProfile->mFont );
313
314}
315
316//-----------------------------------------------------------------------------
317

Callers 3

insertItemMethod · 0.45
editItemMethod · 0.45
showItemRenameCtrlMethod · 0.45

Calls 3

errorfFunction · 0.50
testMethod · 0.45
isNullMethod · 0.45

Tested by

no test coverage detected