summaryrefslogtreecommitdiffstats
path: root/ganv/canvas.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-05-27 20:49:19 +0000
committerDavid Robillard <d@drobilla.net>2012-05-27 20:49:19 +0000
commit4daae21bca3737b8c8bd0799741b33d5f812de73 (patch)
tree16377a16051eff62ae3e823a94e01bb31a54e885 /ganv/canvas.h
parentc2f1eff1f97023a514d6e2fef31f595d73ce7154 (diff)
downloadganv-4daae21bca3737b8c8bd0799741b33d5f812de73.tar.gz
ganv-4daae21bca3737b8c8bd0799741b33d5f812de73.tar.bz2
ganv-4daae21bca3737b8c8bd0799741b33d5f812de73.zip
Clean up canvas.h and fix some problems with GIR generation.
git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@4467 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'ganv/canvas.h')
-rw-r--r--ganv/canvas.h30
1 files changed, 21 insertions, 9 deletions
diff --git a/ganv/canvas.h b/ganv/canvas.h
index acb6072..edf39f6 100644
--- a/ganv/canvas.h
+++ b/ganv/canvas.h
@@ -84,6 +84,7 @@ ganv_canvas_add_node(GanvCanvas* canvas,
/**
* ganv_canvas_get_edge:
* Get the edge between two nodes, or NULL if none exists.
+ * Return value: (transfer none): The root group of @canvas.
*/
GanvEdge*
ganv_canvas_get_edge(GanvCanvas* canvas,
@@ -104,15 +105,6 @@ double
ganv_canvas_get_default_font_size(const GanvCanvas* canvas);
void
-ganv_canvas_set_zoom(GanvCanvas* canvas, double zoom);
-
-void
-ganv_canvas_set_font_size(GanvCanvas* canvas, double points);
-
-void
-ganv_canvas_set_scale(GanvCanvas* canvas, double zoom, double points);
-
-void
ganv_canvas_set_direction(GanvCanvas* canvas, GanvDirection dir);
void
@@ -140,6 +132,12 @@ ganv_canvas_for_each_node(GanvCanvas* canvas,
GanvNodeFunc f,
void* data);
+/**
+ * ganv_canvas_for_each_selected_node:
+ * @canvas: The canvas.
+ * @f: (scope call): A function to call on every selected node on @canvas.
+ * @data: Data to pass to @f.
+ */
void
ganv_canvas_for_each_selected_node(GanvCanvas* canvas,
GanvNodeFunc f,
@@ -211,6 +209,13 @@ double
ganv_canvas_get_zoom(GanvCanvas* canvas);
/**
+ * ganv_canvas_set_zoom:
+ * Set the current zoom factor (pixels per unit).
+ */
+void
+ganv_canvas_set_zoom(GanvCanvas* canvas, double zoom);
+
+/**
* ganv_canvas_get_font_size:
* Get the current font size in points.
*/
@@ -218,6 +223,13 @@ double
ganv_canvas_get_font_size(const GanvCanvas* canvas);
/**
+ * ganv_canvas_set_font_size:
+ * Set the current font size in points.
+ */
+void
+ganv_canvas_set_font_size(GanvCanvas* canvas, double points);
+
+/**
* ganv_canvas_set_scale:
* Set the zoom and font size for the canvas.
*/