| 573 | } |
| 574 | |
| 575 | Widget* Widget::findWidget(std::string_view _name) |
| 576 | { |
| 577 | if (_name == mName) |
| 578 | return this; |
| 579 | if (mWidgetClient != nullptr) |
| 580 | return mWidgetClient->findWidget(_name); |
| 581 | |
| 582 | for (const auto& widget : mWidgetChild) |
| 583 | { |
| 584 | Widget* find = widget->findWidget(_name); |
| 585 | if (nullptr != find) |
| 586 | return find; |
| 587 | } |
| 588 | return nullptr; |
| 589 | } |
| 590 | |
| 591 | void Widget::setRealPosition(const FloatPoint& _point) |
| 592 | { |
no outgoing calls
no test coverage detected