summaryrefslogtreecommitdiffstats
path: root/ganv/canvas.h
diff options
context:
space:
mode:
Diffstat (limited to 'ganv/canvas.h')
-rw-r--r--ganv/canvas.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/ganv/canvas.h b/ganv/canvas.h
index c910edf..4e3c687 100644
--- a/ganv/canvas.h
+++ b/ganv/canvas.h
@@ -44,6 +44,8 @@ struct _GanvCanvas
GnomeCanvas canvas;
struct GanvCanvasImpl* impl;
GanvDirection direction;
+ double width;
+ double height;
gboolean locked;
};
@@ -53,7 +55,10 @@ struct _GanvCanvasClass {
GType ganv_canvas_get_type(void);
-GanvCanvas* ganv_canvas_new(void);
+GanvCanvas* ganv_canvas_new(double width, double height);
+
+void
+ganv_canvas_resize(GanvCanvas* canvas, double width, double height);
GnomeCanvasGroup*
ganv_canvas_get_root(const GanvCanvas* canvas);
@@ -67,6 +72,9 @@ double
ganv_canvas_get_font_size(const GanvCanvas* canvas);
void
+ganv_canvas_set_font_size(GanvCanvas* canvas, double points);
+
+void
ganv_canvas_clear_selection(GanvCanvas* canvas);
typedef void (*GanvEdgeFunction)(GanvEdge* edge);