diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2019-03-08 13:22:14 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2019-03-08 13:22:14 (GMT) |
commit | 856dfb72dec63f566c5525df42a8b292987a14d6 (patch) | |
tree | 9ec45be18f53cec5499d3618cd4a17c2468f670a /src/gtkext/graph/leaving.h | |
parent | 18aca544d1e1acf84f6be981fdd94ecabc92bae3 (diff) |
Reordered blocks in graph view to avoid edge crossing.
Diffstat (limited to 'src/gtkext/graph/leaving.h')
-rw-r--r-- | src/gtkext/graph/leaving.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/gtkext/graph/leaving.h b/src/gtkext/graph/leaving.h index c91f232..b81e1ca 100644 --- a/src/gtkext/graph/leaving.h +++ b/src/gtkext/graph/leaving.h @@ -61,6 +61,21 @@ void delete_leaving_link(leaving_link_t *); /* Calcule l'abscisse d'un lien à son départ d'un bloc. */ gint compute_leaving_link_position(const leaving_link_t *); +/* Direction prise par le lien */ +typedef enum _LeavingLinkDir +{ + LLD_NO_PREF, /* Direction variable */ + LLD_TO_LEFT, /* Vers la gauche */ + LLD_TO_RIGHT, /* Vers la droite */ + +} LeavingLinkDir; + +/* Détermine une direction prise par un lien à son départ. */ +LeavingLinkDir get_leaving_link_direction(const leaving_link_t *); + +/* Compare deux liens sortants. */ +int cmp_leaving_links(const leaving_link_t **, const leaving_link_t **, const LeavingLinkDir *); + #endif /* _GTKEXT_GRAPH_LEAVING_H */ |