|
Deki 0.19.0
Modular C++ 2D engine for embedded displays and desktop
|
#include <C:/Users/kirby/Documents/Github/deki/deki-editor/deki-editor/include/deki-editor/NodeCanvas.h>
Public Member Functions | |
| void | Draw (const char *id, float width, float height, const NodeCanvasNode *nodes, int nodeCount, const NodeCanvasLink *links, int linkCount, NodeCanvasEvents &out) |
| Reserves width x height at the cursor and draws the graph. | |
| void | FocusContent () |
| Frames all content on the next Draw. Call after opening a graph. | |
| float | GetPanX () const |
| float | GetPanY () const |
| float | GetZoom () const |
| void | SetView (float panX, float panY, float zoom) |
| void | SetPalette (const NodeCanvasPalette &palette) |
Static Public Member Functions | |
| static float | NodeWidth (const NodeCanvasNode &n) |
| Node size in graph units, for layout outside Draw (the window uses it to centre new nodes on the cursor). | |
| static float | NodeHeight (const NodeCanvasNode &n) |
| void DekiEditor::NodeCanvas::Draw | ( | const char * | id, |
| float | width, | ||
| float | height, | ||
| const NodeCanvasNode * | nodes, | ||
| int | nodeCount, | ||
| const NodeCanvasLink * | links, | ||
| int | linkCount, | ||
| NodeCanvasEvents & | out ) |
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.
|
inline |
Frames all content on the next Draw. Call after opening a graph.
|
inline |
|
inline |
|
inline |
| void DekiEditor::NodeCanvas::SetView | ( | float | panX, |
| float | panY, | ||
| float | zoom ) |
|
inline |
|
static |
Node size in graph units, for layout outside Draw (the window uses it to centre new nodes on the cursor).
|
static |