diff options
author | David Robillard <d@drobilla.net> | 2020-07-30 21:14:41 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-07-30 21:14:41 +0200 |
commit | 1d33505fa45fe69010719e45546de4523254d510 (patch) | |
tree | f3849dcfa78f32fc2cead41b686b06bfb1d294fd /ganv/canvas.h | |
parent | 6d41e6aad3255a62af3c1b566921eedca6dad931 (diff) | |
download | ganv-1d33505fa45fe69010719e45546de4523254d510.tar.gz ganv-1d33505fa45fe69010719e45546de4523254d510.tar.bz2 ganv-1d33505fa45fe69010719e45546de4523254d510.zip |
Expand canvas automatically to fit nodes
Diffstat (limited to 'ganv/canvas.h')
-rw-r--r-- | ganv/canvas.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ganv/canvas.h b/ganv/canvas.h index 3ffb55c..5d1c5ee 100644 --- a/ganv/canvas.h +++ b/ganv/canvas.h @@ -134,6 +134,14 @@ gboolean ganv_canvas_empty(const GanvCanvas* canvas); /** + * ganv_canvas_get_size: + * + * Gets the width and height of the canvas. + */ +void +ganv_canvas_get_size(GanvCanvas* canvas, double* width, double* height); + +/** * ganv_canvas_resize: * * Resize the canvas to the given dimensions. |