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

Method notifyChangePanels

Demos/Demo_PanelView/DemoKeeper.cpp:57–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55 }
56
57 void DemoKeeper::notifyChangePanels(int _key, size_t _value)
58 {
59 if (_key == EVENT_SHOW_STATIC)
60 {
61 mPanelStatic->setVisible(_value != 0);
62 }
63 else if (_key == EVENT_SHOW_DYNAMIC)
64 {
65 mPanelDynamic->setVisible(_value != 0);
66 }
67 else if (_key == EVENT_COUNT_DYNAMIC)
68 {
69 mPanelDynamic->setVisibleCount(_value);
70 }
71 }
72
73} // namespace demo
74

Callers

nothing calls this directly

Calls 2

setVisibleCountMethod · 0.80
setVisibleMethod · 0.45

Tested by

no test coverage detected