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

Method selectWindow

Engine/source/gui/containers/guiWindowCtrl.cpp:1646–1669  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1644//-----------------------------------------------------------------------------
1645
1646void GuiWindowCtrl::selectWindow(void)
1647{
1648 // First make sure this window is the front most of its siblings
1649 GuiControl *parent = getParent();
1650 if (parent && *parent->end() != this )
1651 {
1652 // Valid collapse groups have to be selected together
1653 if( mCanCollapse && mCollapseGroup >= 0 )
1654 {
1655 CollapseGroupNumVec::iterator iter = parent->mCollapseGroupVec[mCollapseGroup].begin();
1656 for(; iter != parent->mCollapseGroupVec[mCollapseGroup].end(); iter++ )
1657 {
1658 parent->pushObjectToBack( (*iter) );
1659 }
1660 }
1661 else
1662 {
1663 parent->pushObjectToBack( this );
1664 }
1665 }
1666
1667 // Also set the first responder to be the one within this window
1668 setFirstResponder(mFirstResponder);
1669}
1670
1671//-----------------------------------------------------------------------------
1672

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