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

Function requestConnectPoint

UnitTests/UnitTest_GraphView/DemoKeeper.cpp:32–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30 }
31
32 static void requestConnectPoint(
33 wraps::BaseGraphView* _sender,
34 wraps::BaseGraphConnection* _from,
35 wraps::BaseGraphConnection* _to,
36 bool& _result)
37 {
38 if (_to == nullptr)
39 {
40 if (isConnectionOut(_from->getType()))
41 {
42 _result = true;
43 }
44 }
45 else
46 {
47 if (_from != _to && isConnectionTypeSimple(_from->getType()) == isConnectionTypeSimple(_to->getType()) &&
48 isConnectionOut(_from->getType()) && !isConnectionOut(_to->getType()) &&
49 !_sender->isConnecting(_from, _to))
50 {
51 _result = true;
52 }
53 }
54 }
55
56 static void requestDisconnectPoint(
57 wraps::BaseGraphView* _sender,

Callers 2

startDragMethod · 0.85
requestConnectToPointMethod · 0.85

Calls 4

isConnectionOutFunction · 0.85
isConnectionTypeSimpleFunction · 0.85
isConnectingMethod · 0.80
getTypeMethod · 0.45

Tested by

no test coverage detected