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

Method updateSize

Tools/LayoutEditor/PanelControllers.cpp:152–164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150 }
151
152 void PanelControllers::updateSize()
153 {
154 int height = mButtonDelete->getCoord().bottom() + 3;
155
156 for (auto& field : mFields)
157 {
158 MyGUI::IntSize size = field->getContentSize();
159 field->setCoord(MyGUI::IntCoord(0, height, mMainWidget->getWidth(), size.height));
160 height += size.height;
161 }
162
163 mPanelCell->setClientHeight(height);
164 }
165
166 void PanelControllers::loadControllerTypes(
167 MyGUI::xml::ElementPtr _node,

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected