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

Method initialise

Tools/LayoutEditor/WidgetsWindow.cpp:59–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57 }
58
59 void WidgetsWindow::initialise()
60 {
61 const SkinGroups& groups = WidgetTypes::getInstance().getSkinGroups();
62 for (const auto& group : groups)
63 {
64 MyGUI::TabItem* page = mTabSkins->addItem(group.first);
65 MyGUI::ItemBox* box = page->createWidget<MyGUI::ItemBox>(
66 "ItemBoxEmpty",
67 MyGUI::IntCoord(0, 0, page->getSize().width, page->getSize().height),
68 MyGUI::Align::Stretch);
69 mItemBoxs.push_back(box);
70
71 box->requestCreateWidgetItem = MyGUI::newDelegate(this, &WidgetsWindow::requestCreateWidgetItem);
72 box->requestCoordItem = MyGUI::newDelegate(this, &WidgetsWindow::requestCoordItem);
73 box->requestDrawItem = MyGUI::newDelegate(this, &WidgetsWindow::requestDrawItem);
74
75 for (const auto& iterSkin : group.second)
76 {
77 box->addItem(iterSkin);
78 }
79 }
80 }
81
82 bool WidgetsWindow::getCellSelected(MyGUI::Widget* _widget)
83 {

Callers

nothing calls this directly

Calls 5

newDelegateFunction · 0.85
IntCoordFunction · 0.50
addItemMethod · 0.45
getSizeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected