| 2155 | //----------------------------------------------------------------------------- |
| 2156 | |
| 2157 | bool 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. |
no test coverage detected