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

Method isParent

Engine/source/gui/controls/guiTreeViewCtrl.cpp:656–674  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

654//-----------------------------------------------------------------------------
655
656bool GuiTreeViewCtrl::Item::isParent() const
657{
658 if(mState.test(VirtualParent))
659 {
660 if( !isInspectorData() )
661 return true;
662
663 // Does our object have any children?
664 if(mInspectorInfo.mObject)
665 {
666 SimSet *pSimSet = dynamic_cast<SimSet*>( (SimObject*)mInspectorInfo.mObject);
667 if ( pSimSet != NULL && pSimSet->size() > 0)
668 return pSimSet->size();
669 }
670 }
671
672 // Otherwise, just return whether the child list is populated.
673 return mChild;
674}
675
676//-----------------------------------------------------------------------------
677

Callers 9

_destroyChildrenMethod · 0.80
_buildItemMethod · 0.80
isValidDragTargetMethod · 0.80
onItemSelectedMethod · 0.80
onKeyDownMethod · 0.80
onMouseDownMethod · 0.80
onRenderCellMethod · 0.80
reparentItemsMethod · 0.80

Calls 2

testMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected