MCPcopy Create free account
hub / github.com/MyGUI/mygui / baseCreateWidget

Method baseCreateWidget

MyGUIEngine/src/MyGUI_Gui.cpp:157–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 5

attachToLayerNodeMethod · 0.80
createWidgetMethod · 0.45
push_backMethod · 0.45
setAlignMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected