From d961d48c953429d630ce33e09bf214e673151339 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 13 Jan 2013 23:43:56 +0000 Subject: Support resizing circles to fit label, and setting radius in ems. git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@4969 a436a847-0d15-0410-975c-d299462d15a1 --- ganv/Circle.hpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'ganv') diff --git a/ganv/Circle.hpp b/ganv/Circle.hpp index 721b153..1ba9ae6 100644 --- a/ganv/Circle.hpp +++ b/ganv/Circle.hpp @@ -49,9 +49,7 @@ public: Circle(Canvas& canvas, const std::string& name, double x, - double y, - double radius, - bool show_title) + double y) : Node(&canvas, GANV_NODE( ganv_item_new( @@ -61,7 +59,6 @@ public: "y", y, "can-tail", TRUE, "can-head", TRUE, - "radius", radius, "fill-color", FILL_COLOUR, "border-color", BORDER_COLOUR, "label", name.c_str(), @@ -70,6 +67,8 @@ public: {} RW_PROPERTY(double, radius); + RW_PROPERTY(double, radius_ems); + RW_PROPERTY(gboolean, fit_label); GanvCircle* gobj() { return GANV_CIRCLE(_gobj); } const GanvCircle* gobj() const { return GANV_CIRCLE(_gobj); } -- cgit v1.2.1