diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2013-05-26 10:49:51 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2013-05-26 10:49:51 (GMT) |
commit | d80df591b6104c98d21e1db5143610fb84e35941 (patch) | |
tree | b17d441e544b68f8433c45ba8a177242317a3bce /src/gtkext/graph/node.h | |
parent | 114e769bc9c3dc48f0293f080d687451e32220e3 (diff) |
Improved the graph rendering.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@347 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/gtkext/graph/node.h')
-rw-r--r-- | src/gtkext/graph/node.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/gtkext/graph/node.h b/src/gtkext/graph/node.h index 53232d9..fa2fa27 100644 --- a/src/gtkext/graph/node.h +++ b/src/gtkext/graph/node.h @@ -89,6 +89,9 @@ void g_graph_node_reset_position(GGraphNode *); /* Altère la position du noeud d'encapsulation. */ void g_graph_node_set_position(GGraphNode *, gint *, gint *); +/* Prépare la position du noeud pour l'alignement des liens. */ +void g_graph_node_set_pending_position(GGraphNode *, gint *, gint *); + /* Fournit la position du noeud d'encapsulation. */ void g_graph_node_get_position(const GGraphNode *, gint *, gint *); @@ -96,7 +99,7 @@ void g_graph_node_get_position(const GGraphNode *, gint *, gint *); ({ \ gint _x; \ g_graph_node_get_position(node, &_x, NULL); \ - _x != UNINITIALIZED_NODE_POS; \ + _x != UNINITIALIZED_NODE_POS/* || node->pending_x != 0*/; \ }) /* Espace constitué, entièrement ou non. */ @@ -108,6 +111,9 @@ bool g_graph_node_visit_nodes(GGraphNode *, graph_node_visitor_cb, void *); /* Recherche le noeud contenant un autre noeud. */ GGraphNode *g_graph_node_find_container(GGraphNode *, GGraphNode *); +/* Recherche le noeud contenant un autre noeud à un même niveau. */ +GGraphNode *g_graph_node_find_container_at_same_level(GGraphNode *, GGraphNode *, GGraphNode *); + /* Inscrit le noeud au rang donné. */ |