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

Method onDoModal

Tools/LayoutEditor/CodeGenerator.cpp:180–188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

178 }
179
180 void CodeGenerator::onDoModal()
181 {
182 MyGUI::IntSize windowSize = mMainWidget->getSize();
183 MyGUI::IntSize parentSize = mMainWidget->getParentSize();
184
185 mMainWidget->setPosition(
186 (parentSize.width - windowSize.width) / 2,
187 (parentSize.height - windowSize.height) / 2);
188 }
189
190 void CodeGenerator::onEndModal()
191 {

Callers

nothing calls this directly

Calls 3

getParentSizeMethod · 0.80
getSizeMethod · 0.45
setPositionMethod · 0.45

Tested by

no test coverage detected