MCPcopy Create free account
hub / github.com/SpartanJ/eepp / getPrevWidget

Method getPrevWidget

src/eepp/ui/uiwidget.cpp:2420–2438  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2418}
2419
2420UIWidget* 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
2440UIWidget* UIWidget::getNextWidget() const {
2441 UIWidget* found = NULL;

Callers 1

getPrevTabWidgetMethod · 0.80

Calls 6

isWidgetMethod · 0.80
getNextWidgetMethod · 0.80
getPrevNodeMethod · 0.80
isVisibleMethod · 0.45
isEnabledMethod · 0.45
isTabFocusableMethod · 0.45

Tested by

no test coverage detected