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

Method controlIsChild

Engine/source/gui/core/guiControl.cpp:2157–2167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2155//-----------------------------------------------------------------------------
2156
2157bool GuiControl::controlIsChild( GuiControl* child )
2158{
2159 for( iterator i = begin(); i != end(); ++ i )
2160 {
2161 GuiControl* ctrl = static_cast< GuiControl* >( *i );
2162 if( ctrl == child || ctrl->controlIsChild( child ) )
2163 return true;
2164 }
2165
2166 return false;
2167}
2168
2169//=============================================================================
2170// Event Handling.

Callers 3

guiControl.cppFile · 0.80

Calls 2

beginFunction · 0.85
endFunction · 0.85

Tested by

no test coverage detected