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

Method addSelectControlAt

Engine/source/gui/editor/guiEditCtrl.cpp:1602–1614  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1600//-----------------------------------------------------------------------------
1601
1602void GuiEditCtrl::addSelectControlAt( const Point2I& pos )
1603{
1604 // Run a hit test.
1605
1606 canHitSelectedControls( false );
1607 GuiControl* hit = getContentControl()->findHitControl( pos );
1608 canHitSelectedControls( true );
1609
1610 // Add to selection.
1611
1612 if( hit )
1613 addSelection( hit );
1614}
1615
1616//-----------------------------------------------------------------------------
1617

Callers

nothing calls this directly

Calls 2

getContentControlFunction · 0.85
findHitControlMethod · 0.45

Tested by

no test coverage detected