MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / selectWindow

Method selectWindow

Engine/source/gui/containers/guiWindowCtrl.cpp:1616–1639  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1614//-----------------------------------------------------------------------------
1615
1616void GuiWindowCtrl::selectWindow(void)
1617{
1618 // First make sure this window is the front most of its siblings
1619 GuiControl *parent = getParent();
1620 if (parent && *parent->end() != this )
1621 {
1622 // Valid collapse groups have to be selected together
1623 if( mCanCollapse && mCollapseGroup >= 0 )
1624 {
1625 CollapseGroupNumVec::iterator iter = parent->mCollapseGroupVec[mCollapseGroup].begin();
1626 for(; iter != parent->mCollapseGroupVec[mCollapseGroup].end(); iter++ )
1627 {
1628 parent->pushObjectToBack( (*iter) );
1629 }
1630 }
1631 else
1632 {
1633 parent->pushObjectToBack( this );
1634 }
1635 }
1636
1637 // Also set the first responder to be the one within this window
1638 setFirstResponder(mFirstResponder);
1639}
1640
1641//-----------------------------------------------------------------------------
1642

Callers 2

onKeyDownMethod · 0.45
guiWindowCtrl.cppFile · 0.45

Calls 3

pushObjectToBackMethod · 0.80
endMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected