diff options
| author | Krasimir Angelov <kr.angelov@gmail.com> | 2017-08-31 10:58:49 +0200 |
|---|---|---|
| committer | Krasimir Angelov <kr.angelov@gmail.com> | 2017-08-31 10:58:49 +0200 |
| commit | eaf9f0c3ac2ce1c34a0e08de9073d8fca66a3680 (patch) | |
| tree | ce43fb9e4d2e4ed63ce093ca6a5553923c6063ad /src/runtime/c/pgf/graphviz.h | |
| parent | 675ef4573ccf14fd380f7d1e6bc9ba97e5408ee3 (diff) | |
the C runtime now supports the same customizations for GraphViz as the Haskell runtime
Diffstat (limited to 'src/runtime/c/pgf/graphviz.h')
| -rw-r--r-- | src/runtime/c/pgf/graphviz.h | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/src/runtime/c/pgf/graphviz.h b/src/runtime/c/pgf/graphviz.h index f2fdf11d8..d230fdcd8 100644 --- a/src/runtime/c/pgf/graphviz.h +++ b/src/runtime/c/pgf/graphviz.h @@ -1,10 +1,25 @@ #ifndef PGF_GRAPHVIZ_H_ #define PGF_GRAPHVIZ_H_ +typedef struct { + int noLeaves; + int noFun; + int noCat; + int noDep; + GuString nodeFont; + GuString leafFont; + GuString nodeColor; + GuString leafColor; + GuString nodeEdgeStyle; + GuString leafEdgeStyle; +} PgfGraphvizOptions; + +extern PgfGraphvizOptions pgf_default_graphviz_options[1]; + PGF_API_DECL void -pgf_graphviz_abstract_tree(PgfPGF* pgf, PgfExpr expr, GuOut* out, GuExn* err); +pgf_graphviz_abstract_tree(PgfPGF* pgf, PgfExpr expr, PgfGraphvizOptions* opts, GuOut* out, GuExn* err); PGF_API_DECL void -pgf_graphviz_parse_tree(PgfConcr* concr, PgfExpr expr, GuOut* out, GuExn* err); +pgf_graphviz_parse_tree(PgfConcr* concr, PgfExpr expr, PgfGraphvizOptions* opts, GuOut* out, GuExn* err); #endif |
