diff options
author | David Robillard <d@drobilla.net> | 2012-04-25 03:35:33 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-04-25 03:35:33 +0000 |
commit | 0cbdbc4219d353ace86219a0cfcbcfa62c1d3ac7 (patch) | |
tree | 7f9bc3ee7f2546cee9c0c139272b4a36b1fbb9fb /ganv/Canvas.hpp | |
parent | d584affebc427921f05a6ba7c8ae826380ed5dfd (diff) | |
download | ganv-0cbdbc4219d353ace86219a0cfcbcfa62c1d3ac7.tar.gz ganv-0cbdbc4219d353ace86219a0cfcbcfa62c1d3ac7.tar.bz2 ganv-0cbdbc4219d353ace86219a0cfcbcfa62c1d3ac7.zip |
Move more functionality down to C canvas.
git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@4271 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'ganv/Canvas.hpp')
-rw-r--r-- | ganv/Canvas.hpp | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/ganv/Canvas.hpp b/ganv/Canvas.hpp index 56c1b8c..7b38af5 100644 --- a/ganv/Canvas.hpp +++ b/ganv/Canvas.hpp @@ -72,26 +72,18 @@ public: METHOD0(ganv_canvas, get_zoom); - /** Set the current zoom factor (pixels per unit). */ - void set_zoom(double pix_per_unit); + METHOD1(ganv_canvas, set_zoom, double, pix_per_unit); + METHOD1(ganv_canvas, set_font_size, double, points); + METHOD2(ganv_canvas, set_scale, double, zoom, double, points); - /** Zoom so all canvas contents are visible. */ - void zoom_full(); + METHOD0(ganv_canvas, zoom_full); METHODRET0(ganv_canvas, double, get_font_size) METHODRET0(ganv_canvas, double, get_default_font_size) - /** Set the current font size. */ - void set_font_size(double points); + METHOD1(ganv_canvas, export_dot, const char*, filename); - /** Set both the zoom factor and font size. */ - void set_zoom_and_font_size(double zoom, double points); - - /** Write a Graphviz DOT description of the canvas to @c filename. */ - void render_to_dot(const std::string& filename); - - /** Automatically arrange the canvas contents if Graphviz is available. */ - void arrange(); + METHOD0(ganv_canvas, arrange); METHOD2(ganv_canvas, move_contents_to, double, x, double, y); |