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

Method InformationWindow

Demos/Demo_Gui/InformationWindow.cpp:12–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10{
11
12 InformationWindow::InformationWindow(MyGUI::Widget* _parent) :
13 BaseLayout("InformationWindow.layout", _parent)
14 {
15 assignWidget(mInfo, "Info");
16
17 MyGUI::Gui::getInstance().eventFrameStart += MyGUI::newDelegate(this, &InformationWindow::notifyFrameStart);
18
19 if (_parent)
20 {
21 const MyGUI::IntCoord& coord = _parent->getClientCoord();
22 const MyGUI::IntSize& size = mMainWidget->getSize();
23 mMainWidget->setPosition(
24 MyGUI::IntPoint(getRand(0, coord.width - size.width), getRand(0, coord.height - size.height)));
25 }
26 }
27
28 InformationWindow::~InformationWindow()
29 {

Callers

nothing calls this directly

Calls 7

assignWidgetFunction · 0.85
newDelegateFunction · 0.85
getRandFunction · 0.85
getClientCoordMethod · 0.80
IntPointFunction · 0.50
getSizeMethod · 0.45
setPositionMethod · 0.45

Tested by

no test coverage detected