Browse Source

+GuiEdge, a line between two slots

master
gradient 8 years ago
parent
commit
1794f0cde3
1 changed files with 12 additions and 0 deletions
  1. +12
    -0
      src/gui/node_editor.h

+ 12
- 0
src/gui/node_editor.h View File

@ -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() {


Loading…
Cancel
Save