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/params.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/params.h')
-rw-r--r-- | src/gtkext/graph/params.h | 46 |
1 files changed, 43 insertions, 3 deletions
diff --git a/src/gtkext/graph/params.h b/src/gtkext/graph/params.h index 63960b8..d4fea24 100644 --- a/src/gtkext/graph/params.h +++ b/src/gtkext/graph/params.h @@ -31,12 +31,52 @@ #define UNINITIALIZED_NODE_POS G_MININT +/** + * Paramètres à l'échelle du graphique. + */ + +/* Bordures supérieure et inférieure des graphiques */ +#define GRAPH_VERTICAL_MARGIN 15 + +/* Bordures gauche et droite des graphiques */ +#define GRAPH_HORIZONTAL_MARGIN 15 + + +/** + * Paramètres à l'échelle du noeud. + */ + + + -#define GRAPH_LEFT_MARGIN 15 -#define GRAPH_TOP_MARGIN 15 #define NODE_LEFT_MARGIN 25 -#define NODE_TOP_MARGIN 55 +#define NODE_TOP_MARGIN 55 /* TODO : supprimer */ + + + +/* Séparation verticale minimale entre deux noeuds */ +#define NODE_VERTICAL_MARGIN 35 + + + + +/* Séparations minimales entre deux liens */ +#define EDGE_HORIZONTAL_MIN_SEP 10 +#define EDGE_VERTICAL_MIN_SEP 10 + +/* Séparations minimales entre un lien et un noeud */ +#define EDGE_SLOT_HORIZ_MARGIN 20 +#define EDGE_SLOT_VERT_MARGIN 20 + + + + + +#define SLOT_VERT_SEP EDGE_SLOT_VERT_MARGIN /* TODO : remplacer */ + +#define ARROW_LENGHT 10 +#define ARROW_DEGREES 10 |