summaryrefslogtreecommitdiffstats
path: root/ganv/canvas.h
diff options
context:
space:
mode:
Diffstat (limited to 'ganv/canvas.h')
-rw-r--r--ganv/canvas.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/ganv/canvas.h b/ganv/canvas.h
index 6d946f4..b569eeb 100644
--- a/ganv/canvas.h
+++ b/ganv/canvas.h
@@ -166,6 +166,14 @@ ganv_canvas_for_each_selected_node(GanvCanvas* canvas,
void* data);
/**
+ * ganv_canvas_empty:
+
+ * Return value: True if there are no items on the canvas.
+ */
+gboolean
+ganv_canvas_empty(const GanvCanvas* canvas);
+
+/**
* ganv_canvas_for_each_edge:
* @canvas: The canvas.
* @f: (scope call): A function to call on every edge on @canvas.