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

Method onDoModal

Tools/EditorFramework/TextureBrowseControl.cpp:45–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43 }
44
45 void TextureBrowseControl::onDoModal()
46 {
47 MyGUI::IntSize windowSize = mMainWidget->getSize();
48 MyGUI::IntSize parentSize = mMainWidget->getParentSize();
49
50 mMainWidget->setPosition(
51 (parentSize.width - windowSize.width) / 2,
52 (parentSize.height - windowSize.height) / 2);
53 }
54
55 void TextureBrowseControl::onEndModal()
56 {

Callers

nothing calls this directly

Calls 3

getParentSizeMethod · 0.80
getSizeMethod · 0.45
setPositionMethod · 0.45

Tested by

no test coverage detected