| 155 | } |
| 156 | |
| 157 | Widget* Gui::baseCreateWidget( |
| 158 | WidgetStyle _style, |
| 159 | std::string_view _type, |
| 160 | std::string_view _skin, |
| 161 | const IntCoord& _coord, |
| 162 | Align _align, |
| 163 | std::string_view _layer, |
| 164 | std::string_view _name) |
| 165 | { |
| 166 | Widget* widget = WidgetManager::getInstance() |
| 167 | .createWidget(_style, _type, _skin, _coord, /*_align, */ nullptr, nullptr, _name); |
| 168 | mWidgetChild.push_back(widget); |
| 169 | |
| 170 | widget->setAlign(_align); |
| 171 | |
| 172 | // присоединяем виджет с уровню |
| 173 | if (!_layer.empty()) |
| 174 | LayerManager::getInstance().attachToLayerNode(_layer, widget); |
| 175 | return widget; |
| 176 | } |
| 177 | |
| 178 | Widget* Gui::findWidgetT(std::string_view _name, bool _throw) const |
| 179 | { |
nothing calls this directly
no test coverage detected