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

Method setVisibleCount

Demos/Demo_PanelView/PanelDynamic.cpp:58–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56 }
57
58 void PanelDynamic::setVisibleCount(size_t _count)
59 {
60 const int height_step = 26;
61 int height_current = 0;
62 for (size_t pos = 0; pos < 16; ++pos)
63 {
64 if (pos < _count)
65 {
66 mItemsText[pos]->setVisible(true);
67 mItemsEdit[pos]->setVisible(true);
68 height_current += height_step;
69 }
70 else
71 {
72 mItemsText[pos]->setVisible(false);
73 mItemsEdit[pos]->setVisible(false);
74 }
75 }
76 mPanelCell->setClientHeight(height_current, true);
77 }
78
79} // namespace demo

Callers 1

notifyChangePanelsMethod · 0.80

Calls 2

setClientHeightMethod · 0.80
setVisibleMethod · 0.45

Tested by

no test coverage detected