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

Method updateSize

Tools/LayoutEditor/PanelProperties.cpp:88–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86 }
87
88 void PanelProperties::updateSize()
89 {
90 int height = 0;
91
92 for (auto& field : mFields)
93 {
94 if (field.second->getVisible())
95 {
96 MyGUI::IntSize size = field.second->getContentSize();
97 field.second->setCoord(MyGUI::IntCoord(0, height, mMainWidget->getWidth(), size.height));
98 height += size.height;
99 }
100 }
101
102 mPanelCell->setClientHeight(height);
103 }
104
105 void PanelProperties::destroyPropertyFields()
106 {

Callers

nothing calls this directly

Calls 6

setClientHeightMethod · 0.80
IntCoordFunction · 0.50
getVisibleMethod · 0.45
getContentSizeMethod · 0.45
setCoordMethod · 0.45
getWidthMethod · 0.45

Tested by

no test coverage detected