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

Method createFailedScene

UnitTests/UnitTest_ChildAttach/DemoKeeper.cpp:70–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68 }
69
70 void DemoKeeper::createFailedScene()
71 {
72 const MyGUI::VectorWidgetPtr& squad_roots = MyGUI::LayoutManager::getInstance().loadLayout("Squad.layout");
73 const MyGUI::VectorWidgetPtr& squad_slot_roots =
74 MyGUI::LayoutManager::getInstance().loadLayout("SquadSlotFailed.layout");
75
76 squad_roots.at(0)->setPosition(500, 100);
77
78 //mTextBoxTest = squad_roots.at(0)->findWidget("TextBoxTest")->castType<MyGUI::TextBox>();
79
80 squad_slot_roots.at(0)->attachToWidget(squad_roots.at(0));
81
82 MyGUI::ImageBox* image = squad_slot_roots.at(0)->findWidget("SquadSlotPortrait")->castType<MyGUI::ImageBox>();
83
84 image->eventMouseSetFocus += MyGUI::newDelegate(this, &DemoKeeper::notifyMouseSetFocus);
85 image->eventMouseLostFocus += MyGUI::newDelegate(this, &DemoKeeper::notifyMouseLostFocus);
86 }
87
88
89} // namespace demo

Callers

nothing calls this directly

Calls 5

newDelegateFunction · 0.85
loadLayoutMethod · 0.80
attachToWidgetMethod · 0.80
findWidgetMethod · 0.80
setPositionMethod · 0.45

Tested by

no test coverage detected