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

Method deleteSkin

Tools/SkinEditor/TestWindow.cpp:96–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94 }
95
96 void TestWindow::deleteSkin()
97 {
98 if (mSkinButton != nullptr)
99 {
100 mSkinButton->eventMouseButtonPressed -= MyGUI::newDelegate(this, &TestWindow::notifyMouseButtonPressed);
101 MyGUI::WidgetManager::getInstance().destroyWidget(mSkinButton);
102 mSkinButton = nullptr;
103 }
104
105 mSkinItem = nullptr;
106 }
107
108 void TestWindow::notifyMouseButtonPressed(MyGUI::Widget* _sender, int _left, int _top, MyGUI::MouseButton _id)
109 {

Callers

nothing calls this directly

Calls 2

newDelegateFunction · 0.85
destroyWidgetMethod · 0.45

Tested by

no test coverage detected