diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2013-05-05 13:18:46 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2013-05-05 13:18:46 (GMT) |
commit | 114e769bc9c3dc48f0293f080d687451e32220e3 (patch) | |
tree | 3d79e9a4783adb52f6a14d00102ad6940c04acf6 /src/gtkext/graph/nodes/virtual.h | |
parent | cf97db0ea4d1ea983db38df85984034b49fa4f77 (diff) |
Implemented first basic steps towards nice graph rendering.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@346 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/gtkext/graph/nodes/virtual.h')
-rw-r--r-- | src/gtkext/graph/nodes/virtual.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/gtkext/graph/nodes/virtual.h b/src/gtkext/graph/nodes/virtual.h index 440c675..20106b6 100644 --- a/src/gtkext/graph/nodes/virtual.h +++ b/src/gtkext/graph/nodes/virtual.h @@ -29,6 +29,12 @@ #include "../../../analysis/blocks/virtual.h" +/* Indice d'une hauteur au sein des rangs */ +typedef size_t vspan_slot_t; + +/* Indice non initilisé */ +#define UNINITIALIZED_VSPAN_SLOT (~((vspan_slot_t)0)) + #define G_TYPE_VIRTUAL_NODE g_virtual_node_get_type() #define G_VIRTUAL_NODE(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), g_virtual_node_get_type(), GVirtualNode)) @@ -59,12 +65,18 @@ size_t g_virtual_node_count_children(const GVirtualNode *); /* Renvoie un des noeuds contenus dans le groupe courant. */ GGraphNode *g_virtual_node_get_child(const GVirtualNode *, size_t); +/* Réserve une portion de largeur pour un lien. */ +vspan_slot_t g_virtual_node_reserve_span(GVirtualNode *, unsigned int, unsigned int, bool); + /* Organise le contenu du noeud selon l'axe des abscisses. */ void g_virtual_node_organize_x_line(GVirtualNode *); /* Procède à un décallage du contenu sur l'axe des abscisses. */ void g_virtual_node_offset_x_line(GVirtualNode *, gint); +/* Fournit la position horizontale obtenue par réservation. */ +gint g_virtual_node_get_x_for_vspan_slot(const GVirtualNode *, vspan_slot_t, bool); + #endif /* _GTKEXT_GRAPH_NODES_VIRTUAL_H */ |