diff options
author | David Robillard <d@drobilla.net> | 2013-01-13 23:43:56 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2013-01-13 23:43:56 +0000 |
commit | d961d48c953429d630ce33e09bf214e673151339 (patch) | |
tree | ca834d35eb426306757d2824e91510cedc1f2f1a /ganv | |
parent | 092ce0be7355612a633e33c42daaf98cf4680858 (diff) | |
download | ganv-d961d48c953429d630ce33e09bf214e673151339.tar.gz ganv-d961d48c953429d630ce33e09bf214e673151339.tar.bz2 ganv-d961d48c953429d630ce33e09bf214e673151339.zip |
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
Diffstat (limited to 'ganv')
-rw-r--r-- | ganv/Circle.hpp | 7 |
1 files changed, 3 insertions, 4 deletions
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); } |