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

Method setObject

Engine/source/gui/controls/guiTreeViewCtrl.cpp:388–402  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

386//-----------------------------------------------------------------------------
387
388void GuiTreeViewCtrl::Item::setObject(SimObject *obj)
389{
390 if(!mState.test(InspectorData))
391 {
392 return;
393 }
394
395 _disconnectMonitors();
396 mInspectorInfo.mObject = obj;
397 _connectMonitors();
398
399 // Update Render Data
400 if( !mProfile.isNull() )
401 mDataRenderWidth = getDisplayTextWidth( mProfile->mFont );
402}
403
404//-----------------------------------------------------------------------------
405

Callers 3

_destroyItemMethod · 0.45
addInspectorDataItemMethod · 0.45
softSnapSelectionMethod · 0.45

Calls 2

testMethod · 0.45
isNullMethod · 0.45

Tested by

no test coverage detected