Debian Codegraph @

lib/gvc/gvc.3

raw
1 .TH LIBGVC 3
2 .SH NAME
3 \fBlibgvc\fR \- Graphviz context library
4 .SH SYNOPSIS
5 .ta .75i 1.5i 2.25i 3i 3.75i 4.5i 5.25i 6i
6 .PP
7 .nf
8 \f5
9 #include <graphviz/gvc.h>
10
11 /* set up a graphviz context */
12 extern GVC_t *gvNEWcontext(const lt_symlist_t *builtins, int demand_loading);
13
14 /* set up a graphviz context \(hy alternative */
15 /* (wraps the above two functions using info built into libgvc) */
16 extern GVC_t *gvContext(void);
17
18 /* parse command line args \(hy minimally argv[0] sets layout engine */
19 extern int gvParseArgs(GVC_t *gvc, int argc, char **argv);
20 extern graph_t *gvNextInputGraph(GVC_t *gvc);
21
22 /* Compute a layout using a specified engine */
23 extern int gvLayout(GVC_t *gvc, graph_t *g, char *engine);
24
25 /* Compute a layout using layout engine from command line args */
26 extern int gvLayoutJobs(GVC_t *gvc, graph_t *g);
27
28 /* Check if a layout has been done */
29 extern bool gvLayoutDone(graph_t *g);
30
31 /* Render layout into string attributes of the graph */
32 extern void attach_attrs(graph_t *g);
33
34 /* Parse an html string */
35 extern char *agstrdup_html(char *s);
36 extern int aghtmlstr(char *s);
37
38 /* Render layout in a specified format to an open FILE */
39 extern int gvRender(GVC_t *gvc, graph_t *g, char *format, FILE *out);
40
41 /* Render layout in a specified format to an open FILE */
42 extern int gvRenderFilename(GVC_t *gvc, graph_t *g, char *format, char *filename);
43
44 /* Render layout according to \-T and \-o options found by gvParseArgs */
45 extern int gvRenderJobs(GVC_t *gvc, graph_t *g);
46
47 /* Clean up layout data structures \(hy layouts are not nestable (yet) */
48 extern int gvFreeLayout(GVC_t *gvc, graph_t *g);
49
50 /* Clean up graphviz context */
51 extern int gvFreeContext(GVC_t *gvc);
52
53 /* Inquire about available plugins */
54 /* See comment in gvc.h */
55 extern char** gvPluginList(GVC_t *gvc, char* kind, int* cnt, char*);
56
57 \fP
58 .fi
59 .SH DESCRIPTION
60 \fIlibgvc\fP provides a context for applications wishing to manipulate
61 and render graphs. It provides command line parsing, common rendering code,
62 and a plugin mechanism for renderers.
63
64 .SH SEE ALSO
65 .BR dot (1),
66 .BR neato (1),
67 .BR cdt (3),
68 .BR cgraph (3)
69 .br
70
71 .SH AUTHOR
72 John Ellson ([email protected]), AT&T