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

Method removeItem

UnitTests/UnitTest_GraphView/BaseGraphView.h:51–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49 }
50
51 void removeItem(BaseGraphNode* _node)
52 {
53 VectorGraphNode::iterator item = std::find(mNodes.begin(), mNodes.end(), _node);
54 MYGUI_ASSERT(item != mNodes.end(), "Item not found");
55
56 removeAllConnections(_node);
57 _node->_shutdown();
58
59 mNodes.erase(item);
60
61 changePosition(nullptr);
62 }
63
64 void removeAllItems()
65 {

Callers 1

notifyNodeClosedMethod · 0.45

Calls 4

beginMethod · 0.45
endMethod · 0.45
_shutdownMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected