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

Method updateSize

Tools/LayoutEditor/PanelMainProperties.cpp:91–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

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