summaryrefslogtreecommitdiff
path: root/src/gtkext/graph/edge.h
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2018-12-30 23:41:52 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2018-12-30 23:41:52 (GMT)
commit4d9b68040b6147215947d5c5a0c67e9e478fba1c (patch)
tree4ea28a1ad045caafbe01fb48f47420c45ae9d254 /src/gtkext/graph/edge.h
parentab3e5a58c2bde7802ba22cfad6113fe77bc86da4 (diff)
Saved first steps towards a new graph layout.
Diffstat (limited to 'src/gtkext/graph/edge.h')
-rw-r--r--src/gtkext/graph/edge.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gtkext/graph/edge.h b/src/gtkext/graph/edge.h
index 4dbc195..d000eb5 100644
--- a/src/gtkext/graph/edge.h
+++ b/src/gtkext/graph/edge.h
@@ -75,6 +75,9 @@ GGraphEdge *_g_graph_edge_new(const GdkPoint *, const GdkPoint **, size_t, const
#define g_graph_edge_new_false(start, y, end) \
_g_graph_edge_new(start, (const GdkPoint *[]) { y }, 1, end, EGC_RED)
+#define g_graph_edge_new_loop(start, yt, yb, end) \
+ _g_graph_edge_new(start, (const GdkPoint *[]) { yt, yb }, 2, end, EGC_BLUE)
+
/* Fournit les abscisses des points extrèmes de la ligne. */
void g_graph_edge_get_x_borders(const GGraphEdge *, gint *, gint *);