Hi there !
I am implementing an open source “patcher” and have made it to the point where I need to draw the connections between outlets and inlets.
What is the best way to draw these connections, knowing that:
- A user might clic on a line to remove a connection or ‘press’ it to get current signal flow in the connection
- Objects can be moved around (so inlets and outlets move)
My two ideas are:
A. draw the connections in the main component (workplace) and handle mouse operations there
B. implement a “Link” Component
What is the best way to do this ?