From 7e11058ba3b1b8339441c9559d36a938f1ecfdc0 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 8 Dec 2011 02:13:47 +0000 Subject: Make canvas direction a property. git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@3835 a436a847-0d15-0410-975c-d299462d15a1 --- ganv/Canvas.hpp | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'ganv/Canvas.hpp') 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); -- cgit v1.2.1