From 1794f0cde34cabde2042f15adbed7a4b4c96c021 Mon Sep 17 00:00:00 2001 From: gradient Date: Fri, 20 Oct 2017 18:50:35 -0500 Subject: [PATCH] +GuiEdge, a line between two slots --- src/gui/node_editor.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/gui/node_editor.h b/src/gui/node_editor.h index a0a18e6..bde4b0f 100644 --- a/src/gui/node_editor.h +++ b/src/gui/node_editor.h @@ -49,6 +49,18 @@ public: Rect bbox; }; +class GuiEdge { +public: + GuiEdge(GuiNode *lhs, GuiNode *rhs, uint fromSlot, uint toSlot) + : lhs(lhs), rhs(rhs), fromSlot(fromSlot), toSlot(toSlot) {} + + + GuiNode *lhs; + GuiNode *rhs; + uint fromSlot; + uint toSlot; +}; + class NodeEditor { public: NodeEditor() {