diff options
-rw-r--r-- | ganv/canvas.h | 30 |
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. */ |