summaryrefslogtreecommitdiffstats
path: root/ganv/canvas.h
diff options
context:
space:
mode:
Diffstat (limited to 'ganv/canvas.h')
-rw-r--r--ganv/canvas.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/ganv/canvas.h b/ganv/canvas.h
index bbf6b97..352c13c 100644
--- a/ganv/canvas.h
+++ b/ganv/canvas.h
@@ -98,11 +98,27 @@ void
ganv_canvas_set_font_size(GanvCanvas* canvas, double points);
void
+ganv_canvas_set_direction(GanvCanvas* canvas, GanvDirection dir);
+
+void
ganv_canvas_clear_selection(GanvCanvas* canvas);
+typedef void (*GanvNodeFunction)(GanvNode* node, void* data);
+
typedef void (*GanvEdgeFunction)(GanvEdge* edge);
/**
+ * ganv_canvas_for_each_node:
+ * @canvas: The canvas.
+ * @f: (scope call): A function to call on every node on @canvas.
+ * @data: Data to pass to @f.
+ */
+void
+ganv_canvas_for_each_node(GanvCanvas* canvas,
+ GanvNodeFunction f,
+ void* data);
+
+/**
* ganv_canvas_for_each_edge_from:
* @canvas: The canvas.
* @tail: The tail to enumerate every edge for.