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

Method addConnection

UnitTests/UnitTest_GraphView/BaseGraphNode.h:150–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148
149 private:
150 void addConnection(BaseGraphConnection* _connection)
151 {
152 _connection->_setOwnerNode(this);
153 _connection->_getMainWidget()->eventMouseButtonPressed +=
154 MyGUI::newDelegate(this, &BaseGraphNode::notifyMouseButtonPressed);
155 _connection->_getMainWidget()->eventMouseButtonReleased +=
156 MyGUI::newDelegate(this, &BaseGraphNode::notifyMouseButtonReleased);
157 _connection->_getMainWidget()->eventMouseDrag += MyGUI::newDelegate(this, &BaseGraphNode::notifyMouseDrag);
158 _connection->_getMainWidget()->setUserData(_connection);
159 }
160
161 void notifyMouseButtonPressed(MyGUI::Widget* _sender, int _left, int _top, MyGUI::MouseButton _id)
162 {

Callers

nothing calls this directly

Calls 4

newDelegateFunction · 0.85
_setOwnerNodeMethod · 0.80
_getMainWidgetMethod · 0.80
setUserDataMethod · 0.45

Tested by

no test coverage detected