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

Method findFirstTabable

Engine/source/gui/core/guiControl.cpp:2054–2075  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2052//-----------------------------------------------------------------------------
2053
2054GuiControl* GuiControl::findFirstTabable()
2055{
2056 // No tabbing if the control is disabled or hidden.
2057 if ( !mAwake || !mVisible )
2058 return NULL;
2059
2060 GuiControl *tabCtrl = NULL;
2061 iterator i;
2062 for (i = begin(); i != end(); i++)
2063 {
2064 GuiControl *ctrl = static_cast<GuiControl *>(*i);
2065 tabCtrl = ctrl->findFirstTabable();
2066 if (tabCtrl)
2067 {
2068 mFirstResponder = tabCtrl;
2069 return tabCtrl;
2070 }
2071 }
2072
2073 //nothing was found, therefore, see if this ctrl is tabable
2074 return ( mProfile != NULL ) ? ( ( mProfile->mTabable && mAwake && mVisible ) ? this : NULL ) : NULL;
2075}
2076
2077//-----------------------------------------------------------------------------
2078

Callers 3

tabNextMethod · 0.80
setContentControlMethod · 0.80
pushDialogControlMethod · 0.80

Calls 2

beginFunction · 0.85
endFunction · 0.85

Tested by

no test coverage detected