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

Method setValue

Engine/source/gui/controls/guiTreeViewCtrl.cpp:318–332  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

316//-----------------------------------------------------------------------------
317
318void GuiTreeViewCtrl::Item::setValue(StringTableEntry val)
319{
320 if(mState.test(InspectorData))
321 {
322 Con::errorf("Tried to set value for item %d, which is InspectorData!", mId);
323 return;
324 }
325
326 mScriptInfo.mValue = const_cast<char*>(val); // mValue really ought to be a StringTableEntry
327
328 // Update Render Data
329 if( !mProfile.isNull() )
330 mDataRenderWidth = getDisplayTextWidth( mProfile->mFont );
331
332}
333
334//-----------------------------------------------------------------------------
335

Callers 3

insertItemMethod · 0.45
setItemValueMethod · 0.45
editItemMethod · 0.45

Calls 3

errorfFunction · 0.50
testMethod · 0.45
isNullMethod · 0.45

Tested by

no test coverage detected