MCPcopy Create free account
hub / github.com/axmolengine/axmol / checkFocusEnabledChild

Method checkFocusEnabledChild

core/ui/UILayout.cpp:1390–1403  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1388}
1389
1390bool Layout::checkFocusEnabledChild() const
1391{
1392 bool ret = false;
1393 for (Node* node : _children)
1394 {
1395 Widget* widget = dynamic_cast<Widget*>(node);
1396 if (widget && widget->isFocusEnabled())
1397 {
1398 ret = true;
1399 break;
1400 }
1401 }
1402 return ret;
1403}
1404
1405Widget* Layout::getChildWidgetByIndex(ssize_t index) const
1406{

Callers

nothing calls this directly

Calls 1

isFocusEnabledMethod · 0.80

Tested by

no test coverage detected