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

Method OnInitialise

Tools/EditorFramework/Control.cpp:45–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43 }
44
45 void Control::OnInitialise(Control* _parent, MyGUI::Widget* _place, std::string_view _layoutName)
46 {
47 mParent = _parent;
48 if (_parent != nullptr)
49 {
50 initialise(_layoutName, _place);
51 _parent->mChilds.push_back(this);
52 }
53 else
54 {
55 initialise(_layoutName, nullptr);
56 }
57
58 AdviceWidget(mMainWidget);
59
60 for (size_t index = 0; index < getRoot()->getChildCount(); index++)
61 CreateChilds(this, getRoot()->getChildAt(index));
62 }
63
64 void Control::CreateChilds(Control* _parent, MyGUI::Widget* _widget)
65 {

Callers 1

CreateChildsMethod · 0.45

Calls 3

getChildCountMethod · 0.80
getChildAtMethod · 0.80
push_backMethod · 0.45

Tested by

no test coverage detected