gvc.3 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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. /* set up a graphviz context */
  11. extern GVC_t *gvNEWcontext(char **info, char *user);
  12. extern char *gvUsername(void);
  13. /* set up a graphviz context \(hy alternative */
  14. /* (wraps the above two functions using info built into libgvc) */
  15. extern GVC_t *gvContext(void);
  16. /* parse command line args \(hy minimally argv[0] sets layout engine */
  17. extern int gvParseArgs(GVC_t *gvc, int argc, char **argv);
  18. extern graph_t *gvNextInputGraph(GVC_t *gvc);
  19. /* Compute a layout using a specified engine */
  20. extern int gvLayout(GVC_t *gvc, graph_t *g, char *engine);
  21. /* Compute a layout using layout engine from command line args */
  22. extern int gvLayoutJobs(GVC_t *gvc, graph_t *g);
  23. /* Render layout into string attributes of the graph */
  24. extern void attach_attrs(graph_t *g);
  25. /* Parse an html string */
  26. extern char *agstrdup_html(char *s);
  27. extern int aghtmlstr(char *s);
  28. /* Render layout in a specified format to an open FILE */
  29. extern int gvRender(GVC_t *gvc, graph_t *g, char *format, FILE *out);
  30. /* Render layout in a specified format to an open FILE */
  31. extern int gvRenderFilename(GVC_t *gvc, graph_t *g, char *format, char *filename);
  32. /* Render layout according to \-T and \-o options found by gvParseArgs */
  33. extern int gvRenderJobs(GVC_t *gvc, graph_t *g);
  34. /* Clean up layout data structures \(hy layouts are not nestable (yet) */
  35. extern int gvFreeLayout(GVC_t *gvc, graph_t *g);
  36. /* Clean up graphviz context */
  37. extern int gvFreeContext(GVC_t *gvc);
  38. /* Inquire about available plugins */
  39. /* See comment in gvc.h */
  40. extern char** gvPluginList(GVC_t *gvc, char* kind, int* cnt, char*);
  41. \fP
  42. .fi
  43. .SH DESCRIPTION
  44. \fIlibgvc\fP provides a context for applications wishing to manipulate
  45. and render graphs. It provides command line parsing, common rendering code,
  46. and a plugin mechanism for renderers.
  47. .SH SEE ALSO
  48. .BR dot (1),
  49. .BR neato (1),
  50. .BR cdt (3),
  51. .BR cgraph (3)
  52. .br
  53. .SH AUTHOR
  54. John Ellson ([email protected]), AT&T