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

Method getNextWidget

src/eepp/ui/uiwidget.cpp:2440–2458  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2438}
2439
2440UIWidget* 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
2460String UIWidget::getTranslatorString( const std::string& str ) {
2461 return getUISceneNode() != nullptr ? getUISceneNode()->getTranslatorString( str ) : String();

Callers 2

getPrevWidgetMethod · 0.80
getNextTabWidgetMethod · 0.80

Calls 5

isWidgetMethod · 0.80
getNextNodeMethod · 0.80
isVisibleMethod · 0.45
isEnabledMethod · 0.45
isTabFocusableMethod · 0.45

Tested by

no test coverage detected