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

Method onDoModal

UnitTests/UnitTest_GraphView/OpenSaveFileDialog.cpp:199–209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

197 }
198
199 void OpenSaveFileDialog::onDoModal()
200 {
201 update();
202
203 MyGUI::IntSize windowSize = mMainWidget->getSize();
204 MyGUI::IntSize parentSize = mMainWidget->getParentSize();
205
206 mMainWidget->setPosition(
207 (parentSize.width - windowSize.width) / 2,
208 (parentSize.height - windowSize.height) / 2);
209 }
210
211 void OpenSaveFileDialog::onEndModal()
212 {

Callers

nothing calls this directly

Calls 3

getParentSizeMethod · 0.80
getSizeMethod · 0.45
setPositionMethod · 0.45

Tested by

no test coverage detected