Graphviz  2.41.20171026.1811
Data Structures | Macros | Typedefs | Enumerations | Functions
xdot.h File Reference
#include <stdio.h>
Include dependency graph for xdot.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  xdot_color_stop
 
struct  xdot_linear_grad
 
struct  xdot_radial_grad
 
struct  xdot_color
 
struct  xdot_point
 
struct  xdot_rect
 
struct  xdot_polyline
 
struct  xdot_text
 
struct  xdot_image
 
struct  xdot_font
 
struct  _xdot_op
 
struct  xdot
 
struct  xdot_stats
 

Macros

#define XDOT_API   extern
 
#define INITIAL_XDOT_CAPACITY   512
 
#define XDOT_PARSE_ERROR   1
 

Typedefs

typedef struct _xdot_op xdot_op
 
typedef void(* drawfunc_t )(xdot_op *, int)
 
typedef void(* freefunc_t )(xdot_op *)
 

Enumerations

enum  xdot_grad_type { xd_none, xd_linear, xd_radial }
 
enum  xdot_align { xd_left, xd_center, xd_right }
 
enum  xdot_kind {
  xd_filled_ellipse, xd_unfilled_ellipse, xd_filled_polygon, xd_unfilled_polygon,
  xd_filled_bezier, xd_unfilled_bezier, xd_polyline, xd_text,
  xd_fill_color, xd_pen_color, xd_font, xd_style,
  xd_image, xd_grad_fill_color, xd_grad_pen_color, xd_fontchar
}
 
enum  xop_kind {
  xop_ellipse, xop_polygon, xop_bezier, xop_polyline,
  xop_text, xop_fill_color, xop_pen_color, xop_font,
  xop_style, xop_image, xop_grad_color, xop_fontchar
}
 

Functions

XDOT_API xdotparseXDotF (char *, drawfunc_t opfns[], int sz)
 
XDOT_API xdotparseXDotFOn (char *, drawfunc_t opfns[], int sz, xdot *)
 
XDOT_API xdotparseXDot (char *)
 
XDOT_API char * sprintXDot (xdot *)
 
XDOT_API void fprintXDot (FILE *, xdot *)
 
XDOT_API void jsonXDot (FILE *, xdot *)
 
XDOT_API void freeXDot (xdot *)
 
XDOT_API int statXDot (xdot *, xdot_stats *)
 
XDOT_API xdot_grad_type colorTypeXDot (char *)
 
XDOT_API char * parseXDotColor (char *cp, xdot_color *clr)
 
XDOT_API void freeXDotColor (xdot_color *)
 

Macro Definition Documentation

#define INITIAL_XDOT_CAPACITY   512

Definition at line 34 of file xdot.h.

#define XDOT_API   extern

Definition at line 31 of file xdot.h.

#define XDOT_PARSE_ERROR   1

Definition at line 146 of file xdot.h.

Referenced by parseXDotFOn().

Typedef Documentation

typedef void(* drawfunc_t)(xdot_op *, int)

Definition at line 125 of file xdot.h.

typedef void(* freefunc_t)(xdot_op *)

Definition at line 126 of file xdot.h.

typedef struct _xdot_op xdot_op

Definition at line 124 of file xdot.h.

Enumeration Type Documentation

enum xdot_align
Enumerator
xd_left 
xd_center 
xd_right 

Definition at line 70 of file xdot.h.

Enumerator
xd_none 
xd_linear 
xd_radial 

Definition at line 36 of file xdot.h.

enum xdot_kind
Enumerator
xd_filled_ellipse 
xd_unfilled_ellipse 
xd_filled_polygon 
xd_unfilled_polygon 
xd_filled_bezier 
xd_unfilled_bezier 
xd_polyline 
xd_text 
xd_fill_color 
xd_pen_color 
xd_font 
xd_style 
xd_image 
xd_grad_fill_color 
xd_grad_pen_color 
xd_fontchar 

Definition at line 104 of file xdot.h.

enum xop_kind
Enumerator
xop_ellipse 
xop_polygon 
xop_bezier 
xop_polyline 
xop_text 
xop_fill_color 
xop_pen_color 
xop_font 
xop_style 
xop_image 
xop_grad_color 
xop_fontchar 

Definition at line 114 of file xdot.h.

Function Documentation

XDOT_API xdot_grad_type colorTypeXDot ( char *  )
XDOT_API void fprintXDot ( FILE *  ,
xdot  
)

Definition at line 894 of file xdot.c.

XDOT_API void freeXDot ( xdot )

Definition at line 945 of file xdot.c.

References xdot::cnt, xdot::freefunc, xdot::ops, and xdot::sz.

Referenced by graph_cleanup().

XDOT_API void freeXDotColor ( xdot_color )
XDOT_API void jsonXDot ( FILE *  ,
xdot  
)

Definition at line 899 of file xdot.c.

XDOT_API xdot* parseXDot ( char *  )

Definition at line 496 of file xdot.c.

References parseXDotF().

XDOT_API char* parseXDotColor ( char *  cp,
xdot_color clr 
)

Definition at line 1130 of file xdot.c.

References xdot_color::clr, NULL, xdot_color::type, xdot_color::u, and xd_none.

XDOT_API xdot* parseXDotF ( char *  ,
drawfunc_t  opfns[],
int  sz 
)

Definition at line 491 of file xdot.c.

References NULL, and parseXDotFOn().

Referenced by init_xdot(), and parseXDot().

XDOT_API xdot* parseXDotFOn ( char *  ,
drawfunc_t  opfns[],
int  sz,
xdot  
)

Definition at line 433 of file xdot.c.

References xdot::cnt, xdot::flags, NEW, NULL, xdot::ops, xdot::sz, XDBSIZE, and XDOT_PARSE_ERROR.

Referenced by parseXDotF().

XDOT_API char* sprintXDot ( xdot )

Definition at line 881 of file xdot.c.

References agxbfree(), agxbinit(), agxbput(), and agxbuse.

XDOT_API int statXDot ( xdot ,
xdot_stats  
)