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

Method ControlPanel

Demos/Demo_Pointers/ControlPanel.cpp:12–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10{
11
12 ControlPanel::ControlPanel(PointerContextManager* _manager) :
13 mPointerContextManager(_manager)
14 {
15 initialiseByAttributes(this);
16
17 const MyGUI::IntSize& size = mMainWidget->getParentSize();
18 mMainWidget->setPosition(10, size.height - 10 - mMainWidget->getHeight());
19
20 mBusy->eventMouseButtonClick += MyGUI::newDelegate(this, &ControlPanel::notifyMouseButtonClick);
21 mRepair->eventMouseButtonClick += MyGUI::newDelegate(this, &ControlPanel::notifyMouseButtonClick);
22 mAttack->eventMouseButtonClick += MyGUI::newDelegate(this, &ControlPanel::notifyMouseButtonClick);
23 }
24
25 void ControlPanel::notifyMouseButtonClick(MyGUI::Widget* _sender)
26 {

Callers

nothing calls this directly

Calls 4

newDelegateFunction · 0.85
getParentSizeMethod · 0.80
setPositionMethod · 0.45
getHeightMethod · 0.45

Tested by

no test coverage detected