| 2438 | } |
| 2439 | |
| 2440 | UIWidget* UIWidget::getNextWidget() const { |
| 2441 | UIWidget* found = NULL; |
| 2442 | UIWidget* possible = NULL; |
| 2443 | Node* child = mChild; |
| 2444 | while ( NULL != child ) { |
| 2445 | if ( child->isVisible() && child->isEnabled() && child->isWidget() ) { |
| 2446 | possible = child->asType<UIWidget>(); |
| 2447 | if ( possible->isTabFocusable() ) { |
| 2448 | return possible; |
| 2449 | } |
| 2450 | found = possible->getNextWidget(); |
| 2451 | if ( found ) { |
| 2452 | return found; |
| 2453 | } |
| 2454 | } |
| 2455 | child = child->getNextNode(); |
| 2456 | } |
| 2457 | return NULL; |
| 2458 | } |
| 2459 | |
| 2460 | String UIWidget::getTranslatorString( const std::string& str ) { |
| 2461 | return getUISceneNode() != nullptr ? getUISceneNode()->getTranslatorString( str ) : String(); |
no test coverage detected