From e9a2fb845bf1fb99daa62168e03989c48c97d33f Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 16 Mar 2014 00:55:18 +0000 Subject: 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 --- ganv/canvas.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'ganv') 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: -- cgit v1.2.1