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

Method notifyWindowButtonPressed

UnitTests/UnitTest_TextureAnimations/DemoKeeper.cpp:48–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46 }
47
48 void DemoKeeper::notifyWindowButtonPressed(MyGUI::Window* _sender, std::string_view _name)
49 {
50 if (_name == "close")
51 {
52 mWidgets.erase(_sender);
53 MyGUI::WidgetManager::getInstance().destroyWidget(_sender);
54 }
55 /*else if (_name == "check")
56 {
57 const MyGUI::IntCoord coord(0, 0, 1024, 768);
58 const MyGUI::IntSize size(300, 300);
59
60 if (_sender->getCoord().width != coord.width)
61 {
62 _sender->setCoord(coord);
63 }
64 else
65 {
66 _sender->setCoord(coord.width / 2 - size.width / 2, coord.height / 2 - size.height / 2, size.width, size.height);
67 }
68 }*/
69 }
70
71 void DemoKeeper::createNewWindow()
72 {

Callers

nothing calls this directly

Calls 2

eraseMethod · 0.45
destroyWidgetMethod · 0.45

Tested by

no test coverage detected