diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2015-05-04 21:58:09 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2015-05-04 21:58:09 (GMT) |
commit | 4d0451c1153eb572f5ab0833c0c0911dfdc5f11a (patch) | |
tree | 6fb1690ded59d323bb21ac200dabb69dca528f2d /src/gtkext/graph/nodes/flow.h | |
parent | 08adf78fbff30d213891a533fbf43d91816b166a (diff) |
Reordered slot indexes in order to avoid edges crossings.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@525 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/gtkext/graph/nodes/flow.h')
-rw-r--r-- | src/gtkext/graph/nodes/flow.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gtkext/graph/nodes/flow.h b/src/gtkext/graph/nodes/flow.h index f659a77..76d0a03 100644 --- a/src/gtkext/graph/nodes/flow.h +++ b/src/gtkext/graph/nodes/flow.h @@ -65,6 +65,9 @@ GFlowBlock *g_flow_node_get_block(const GFlowNode *); /* Précise si le noeud a pour première instruction celle donnée. */ bool g_flow_node_start_with(const GFlowNode *, GArchInstruction *); +/* Précise si le noeud a pour dernière instruction celle donnée. */ +bool g_flow_node_end_with(const GFlowNode *, GArchInstruction *); + /* Précise la hauteur minimale requise pour un noeud. */ void g_flow_node_register_rank(const GFlowNode *, GGraphRanks *); @@ -82,6 +85,12 @@ void g_flow_node_place(const GFlowNode *, GtkGraphView *); /* ------------------------ GESTION DES ACCROCHES D'UN NOEUD ------------------------ */ +/* Compare deux accroches pour liens entre noeuds. */ +int g_flow_node_compare_slots_for_edges(const GFlowNode *, const node_slot_t *, gint, const node_slot_t *, gint); + +/* Réorganise au mieux les points d'accroche d'un noeud. */ +void g_flow_node_reorder_slots(const GFlowNode *, GGraphNode *); + /* Localise un point d'accroche à un noeud graphique. */ GdkPoint g_flow_node_get_point_from_slot(const GFlowNode *, bool, const node_slot_t *); |