summaryrefslogtreecommitdiffstats
path: root/ganv
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-12-08 02:13:47 +0000
committerDavid Robillard <d@drobilla.net>2011-12-08 02:13:47 +0000
commit7e11058ba3b1b8339441c9559d36a938f1ecfdc0 (patch)
tree3d4e815fda7d994ba5093da47875c761bc7dba77 /ganv
parent3cd19961949ebcd69172e184f004427cfb59d5bf (diff)
downloadganv-7e11058ba3b1b8339441c9559d36a938f1ecfdc0.tar.gz
ganv-7e11058ba3b1b8339441c9559d36a938f1ecfdc0.tar.bz2
ganv-7e11058ba3b1b8339441c9559d36a938f1ecfdc0.zip
Make canvas direction a property.
git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@3835 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'ganv')
-rw-r--r--ganv/Canvas.hpp12
-rw-r--r--ganv/canvas.h4
2 files changed, 3 insertions, 13 deletions
diff --git a/ganv/Canvas.hpp b/ganv/Canvas.hpp
index 139d5ab..93e0dea 100644
--- a/ganv/Canvas.hpp
+++ b/ganv/Canvas.hpp
@@ -109,17 +109,7 @@ public:
/** Resize the canvas to the given dimensions. */
void resize(double width, double height);
- /** The direction of the "signal flow" on the canvas. */
- enum FlowDirection {
- HORIZONTAL,
- VERTICAL
- };
-
- /** Set the flow direction of the canvas. */
- void set_direction(FlowDirection d);
-
- /** Return the current flow direction of the canvas. */
- FlowDirection direction() const;
+ RW_PROPERTY(GanvDirection, direction);
typedef void (*NodeFunction)(GanvNode* node, void* data);
diff --git a/ganv/canvas.h b/ganv/canvas.h
index a5bb441..a011cff 100644
--- a/ganv/canvas.h
+++ b/ganv/canvas.h
@@ -35,8 +35,8 @@ struct GanvCanvasImpl;
typedef struct _GanvCanvasClass GanvCanvasClass;
typedef enum {
- GANV_VERTICAL,
- GANV_HORIZONTAL
+ GANV_DIRECTION_DOWN,
+ GANV_DIRECTION_RIGHT
} GanvDirection;
struct _GanvCanvas