| 2418 | } |
| 2419 | |
| 2420 | UIWidget* UIWidget::getPrevWidget() const { |
| 2421 | UIWidget* found = NULL; |
| 2422 | UIWidget* possible = NULL; |
| 2423 | Node* child = mChildLast; |
| 2424 | while ( NULL != child ) { |
| 2425 | if ( child->isVisible() && child->isEnabled() && child->isWidget() ) { |
| 2426 | possible = child->asType<UIWidget>(); |
| 2427 | if ( possible->isTabFocusable() ) { |
| 2428 | return possible; |
| 2429 | } |
| 2430 | found = possible->getNextWidget(); |
| 2431 | if ( found ) { |
| 2432 | return found; |
| 2433 | } |
| 2434 | } |
| 2435 | child = child->getPrevNode(); |
| 2436 | } |
| 2437 | return NULL; |
| 2438 | } |
| 2439 | |
| 2440 | UIWidget* UIWidget::getNextWidget() const { |
| 2441 | UIWidget* found = NULL; |
no test coverage detected