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

Method CreateChilds

Tools/EditorFramework/Control.cpp:64–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62 }
63
64 void Control::CreateChilds(Control* _parent, MyGUI::Widget* _widget)
65 {
66 AdviceWidget(_widget);
67
68 std::string_view controlType = _widget->getUserString("ControlType");
69 if (!controlType.empty())
70 {
71 std::string_view controlLayout = _widget->getUserString("ControlLayout");
72
73 Control* control = components::FactoryManager::GetInstance().CreateItem<Control>(controlType);
74 if (control != nullptr)
75 {
76 control->OnInitialise(_parent, _widget, controlLayout);
77 return;
78 }
79 }
80
81 for (size_t index = 0; index < _widget->getChildCount(); index++)
82 CreateChilds(_parent, _widget->getChildAt(index));
83 }
84
85 void Control::notifyMouseButtonClick(MyGUI::Widget* _sender)
86 {

Callers

nothing calls this directly

Calls 5

getUserStringMethod · 0.80
getChildCountMethod · 0.80
getChildAtMethod · 0.80
emptyMethod · 0.45
OnInitialiseMethod · 0.45

Tested by

no test coverage detected