summaryrefslogtreecommitdiffstats
path: root/ganv
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2014-03-16 00:55:18 +0000
committerDavid Robillard <d@drobilla.net>2014-03-16 00:55:18 +0000
commite9a2fb845bf1fb99daa62168e03989c48c97d33f (patch)
treeb5d686b8512c00bf049a9c834b455b83c99bfea5 /ganv
parent6064fdb066e6be8aa2776f22d8b0eaf28b92dc54 (diff)
downloadganv-e9a2fb845bf1fb99daa62168e03989c48c97d33f.tar.gz
ganv-e9a2fb845bf1fb99daa62168e03989c48c97d33f.tar.bz2
ganv-e9a2fb845bf1fb99daa62168e03989c48c97d33f.zip
Allow user to enable or disable sprung layout.
This setting is saved with the patch so sprung patches remain sprung when loaded again, but manually arranged patches won't be mangled. git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@5340 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'ganv')
-rw-r--r--ganv/canvas.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/ganv/canvas.h b/ganv/canvas.h
index b776b74..57781dc 100644
--- a/ganv/canvas.h
+++ b/ganv/canvas.h
@@ -368,6 +368,23 @@ ganv_canvas_arrange(GanvCanvas* canvas);
void
ganv_canvas_export_dot(GanvCanvas* canvas, const char* filename);
+/**
+ * ganv_canvas_supports_sprung_layout:
+ *
+ * Returns: true iff ganv is compiled with sprung layout support.
+ */
+gboolean
+ganv_canvas_supports_sprung_layout(GanvCanvas* canvas);
+
+/**
+ * ganv_canvas_set_sprung_layout:
+ *
+ * Enable or disable "live" force-directed canvas layout.
+ *
+ * Returns: true iff sprung layout was enabled.
+ */
+gboolean
+ganv_canvas_set_sprung_layout(GanvCanvas* canvas, gboolean sprung_layout);
/**
* ganv_canvas_get_locked: