Immediate-mode node-graph widget with pan, zoom, nodes, pins and links.
More...
#include <C:/Users/kirby/Documents/Github/deki/deki-editor/deki-editor/include/deki-editor/NodeCanvas.h>
Immediate-mode node-graph widget with pan, zoom, nodes, pins and links.
◆ Draw()
Reserves width x height at the cursor and draws the graph.
nodes and links only need to live for the call. out is reset, then filled with this frame's events. Node positions are read only: apply nodeMoving to your model each frame to drag live.
◆ FocusContent()
| void DekiEditor::NodeCanvas::FocusContent |
( |
| ) |
|
|
inline |
Frames all content on the next Draw. Call after opening a graph.
◆ GetPanX()
| float DekiEditor::NodeCanvas::GetPanX |
( |
| ) |
const |
|
inline |
◆ GetPanY()
| float DekiEditor::NodeCanvas::GetPanY |
( |
| ) |
const |
|
inline |
◆ GetZoom()
| float DekiEditor::NodeCanvas::GetZoom |
( |
| ) |
const |
|
inline |
◆ NodeHeight()
◆ NodeWidth()
Node size in graph units, for layout outside Draw (the window uses it to centre new nodes on the cursor).
◆ SetPalette()
◆ SetView()
| void DekiEditor::NodeCanvas::SetView |
( |
float | panX, |
|
|
float | panY, |
|
|
float | zoom ) |
The documentation for this class was generated from the following file: