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

Method State

Demos/Demo_Controllers/State.cpp:12–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10{
11
12 State::State(std::string_view _layout, ControllerType _type) :
13 wraps::BaseLayout(_layout)
14 {
15 mType = _type;
16
17 assignWidget(mButton1, "Button1");
18 assignWidget(mButton2, "Button2");
19 assignWidget(mButton3, "Button3");
20 assignWidget(mButton4, "Button4");
21
22 mMainWidget->setVisible(false);
23 mButton1->setVisible(false);
24 mButton2->setVisible(false);
25 mButton3->setVisible(false);
26 mButton4->setVisible(false);
27
28 mButton1->eventMouseButtonClick += MyGUI::newDelegate(this, &State::notifyMouseButtonClick);
29 mButton2->eventMouseButtonClick += MyGUI::newDelegate(this, &State::notifyMouseButtonClick);
30 mButton3->eventMouseButtonClick += MyGUI::newDelegate(this, &State::notifyMouseButtonClick);
31 mButton4->eventMouseButtonClick += MyGUI::newDelegate(this, &State::notifyMouseButtonClick);
32 }
33
34 State::~State()
35 {

Callers

nothing calls this directly

Calls 3

assignWidgetFunction · 0.85
newDelegateFunction · 0.85
setVisibleMethod · 0.45

Tested by

no test coverage detected