|
Deki 1.3.0
Modular C++ 2D engine for embedded displays and desktop
|
#include <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) |
| Reserve width x height at the cursor and draw the graph. | |
| void | FocusContent () |
| Frame 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) |
| 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 ) |
Reserve width x height at the cursor and draw the graph.
The caller owns nodes/links storage for the duration of the call. Events are written to out (reset at entry). Node positions are NOT mutated: apply nodeMoving to your model each frame for live dragging.
|
inline |
Frame 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 |
|
static |