From df5f31a628df0240aba6c9f7ae0586e77ec127ac Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 17 Sep 2012 20:41:51 +0000 Subject: Add Canvas::remove_edge and allow for_each_edge to be used to remove edges. Add Edge handle_radius accessors. git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@4777 a436a847-0d15-0410-975c-d299462d15a1 --- ganv/Canvas.hpp | 2 ++ ganv/Edge.hpp | 1 + 2 files changed, 3 insertions(+) (limited to 'ganv') diff --git a/ganv/Canvas.hpp b/ganv/Canvas.hpp index 08a1140..00c267c 100644 --- a/ganv/Canvas.hpp +++ b/ganv/Canvas.hpp @@ -99,6 +99,8 @@ public: /** Delete the edge from @c tail to @c head. */ void remove_edge(Node* tail, Node* head); + void remove_edge(Edge* edge); + typedef void (*EdgePtrFunc)(GanvEdge* edge, void* data); void for_each_edge(EdgePtrFunc f, void* data); diff --git a/ganv/Edge.hpp b/ganv/Edge.hpp index 83c3a0b..aa8e7d1 100644 --- a/ganv/Edge.hpp +++ b/ganv/Edge.hpp @@ -77,6 +77,7 @@ public: RW_PROPERTY(gboolean, selected) RW_PROPERTY(gboolean, highlighted) RW_PROPERTY(guint, color) + RW_PROPERTY(gdouble, handle_radius) METHODRETWRAP0(ganv_edge, Node*, get_tail); METHODRETWRAP0(ganv_edge, Node*, get_head); -- cgit v1.2.1