summaryrefslogtreecommitdiff
path: root/src/gtkext/graph/node-int.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gtkext/graph/node-int.h')
-rw-r--r--src/gtkext/graph/node-int.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/gtkext/graph/node-int.h b/src/gtkext/graph/node-int.h
index 9ecb072..6d1086f 100644
--- a/src/gtkext/graph/node-int.h
+++ b/src/gtkext/graph/node-int.h
@@ -32,6 +32,12 @@
/* Fournit le rang du noeud dans le graphique. */
typedef unsigned int (* get_node_rank_fc) (const GGraphNode *);
+/* Réinitialise la position d'un noeud d'encapsulation. */
+typedef void (* node_set_pos_fc) (GGraphNode *, gint *, gint *);
+
+/* Réinitialise la position d'un noeud d'encapsulation. */
+typedef void (* node_reset_pos_fc) (GGraphNode *);
+
/* Altère la position du noeud d'encapsulation. */
typedef void (* node_set_pos_fc) (GGraphNode *, gint *, gint *);
@@ -44,6 +50,9 @@ typedef GtkAllocation (* node_get_alloc_fc) (const GGraphNode *);
/* Parcourt tous les noeuds graphiques dans un ordre donné. */
typedef bool (* visit_flow_nodes_fc) (GGraphNode *, graph_node_visitor_cb, void *);
+/* Recherche le noeud contenant un autre noeud. */
+typedef GGraphNode * (* find_container_fc) (GGraphNode *, GGraphNode *);
+
/* Intermédiaire entre le noeud dot et la bribe de code (instance) */
struct _GGraphNode
@@ -51,10 +60,12 @@ struct _GGraphNode
GObject parent; /* A laisser en premier */
get_node_rank_fc get_rank; /* Premier rang d'appartenance */
+ node_reset_pos_fc reset_pos; /* Réinitialise l'emplacement */
node_set_pos_fc set_pos; /* Définit l'emplacement */
node_get_pos_fc get_pos; /* Fournit l'emplacement */
node_get_alloc_fc get_alloc; /* Fournit l'espace nécessaire */
visit_flow_nodes_fc visit; /* Visite des noeuds d'exécut° */
+ find_container_fc contain; /* Retrouve un conteneur */
GtkWidget *view; /* Morceau de code représenté */
char name[NODE_NAME_LEN]; /* Adresse sous forme humaine */