summaryrefslogtreecommitdiffstats
path: root/ganv
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-09-17 20:41:51 +0000
committerDavid Robillard <d@drobilla.net>2012-09-17 20:41:51 +0000
commitdf5f31a628df0240aba6c9f7ae0586e77ec127ac (patch)
tree01f858fc16e90f291e7d9bc8d4d8854c0b29d215 /ganv
parent5328d6de1338ccd6ff4a554d1e94196ddb8b16c0 (diff)
downloadganv-df5f31a628df0240aba6c9f7ae0586e77ec127ac.tar.gz
ganv-df5f31a628df0240aba6c9f7ae0586e77ec127ac.tar.bz2
ganv-df5f31a628df0240aba6c9f7ae0586e77ec127ac.zip
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
Diffstat (limited to 'ganv')
-rw-r--r--ganv/Canvas.hpp2
-rw-r--r--ganv/Edge.hpp1
2 files changed, 3 insertions, 0 deletions
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);