| 2170 | //----------------------------------------------------------------------------- |
| 2171 | |
| 2172 | bool GuiControl::controlIsChild( GuiControl* child ) |
| 2173 | { |
| 2174 | for( iterator i = begin(); i != end(); ++ i ) |
| 2175 | { |
| 2176 | GuiControl* ctrl = static_cast< GuiControl* >( *i ); |
| 2177 | if( ctrl == child || ctrl->controlIsChild( child ) ) |
| 2178 | return true; |
| 2179 | } |
| 2180 | |
| 2181 | return false; |
| 2182 | } |
| 2183 | |
| 2184 | //============================================================================= |
| 2185 | // Event Handling. |
no test coverage detected