diff options
Diffstat (limited to 'src/gui/MachinaCanvas.hpp')
-rw-r--r-- | src/gui/MachinaCanvas.hpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/gui/MachinaCanvas.hpp b/src/gui/MachinaCanvas.hpp index 155bdfc..f32e6cb 100644 --- a/src/gui/MachinaCanvas.hpp +++ b/src/gui/MachinaCanvas.hpp @@ -33,8 +33,7 @@ namespace gui { class MachinaGUI; class NodeView; -class MachinaCanvas - : public Canvas +class MachinaCanvas : public Canvas { public: MachinaCanvas(MachinaGUI* app, int width, int height); @@ -54,8 +53,11 @@ private: void action_connect(NodeView* tail, NodeView* head); void action_disconnect(NodeView* tail, NodeView* head); + static void connect_nodes(GanvNode* node, void* data); + MachinaGUI* _app; - NodeView* _last_clicked; + NodeView* _connect_node; + bool _did_connect; }; } // namespace machina |