Graphviz 13.0.0~dev.20241220.2304
|
parsing and deparsing of xdot operations More...
#include <stddef.h>
#include <stdio.h>
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_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 * | parseXDotF (char *, drawfunc_t opfns[], size_t sz) |
xdot * | parseXDotFOn (char *, drawfunc_t opfns[], size_t sz, xdot *) |
xdot * | parseXDot (char *) |
char * | sprintXDot (xdot *) |
void | fprintXDot (FILE *, xdot *) |
void | jsonXDot (FILE *, xdot *) |
void | freeXDot (xdot *) |
int | statXDot (xdot *, xdot_stats *) |
xdot_grad_type | colorTypeXDot (char *) |
char * | parseXDotColor (char *cp, xdot_color *clr) |
void | freeXDotColor (xdot_color *) |
libxdot provides support for parsing and deparsing graphical operations specified by the xdot language. xdot is extended dot format containing complete layout information.
Definition in file xdot.h.
enum xdot_align |
enum xdot_grad_type |
enum xdot_kind |
enum xop_kind |
xdot_grad_type colorTypeXDot | ( | char * | ) |
void fprintXDot | ( | FILE * | fp, |
xdot * | x | ||
) |
Definition at line 731 of file xdot.c.
References _printXDot(), and printXDot_Op().
void freeXDot | ( | xdot * | x | ) |
Definition at line 782 of file xdot.c.
References xdot::cnt, free(), xdot::freefunc, freeXOpData(), xdot::ops, and xdot::sz.
Referenced by edge_spline(), edge_xdot(), graph_cleanup(), renderNodes(), renderSelectedEdges(), renderSelectedNodes(), and write_xdots().
void freeXDotColor | ( | xdot_color * | cp | ) |
Definition at line 974 of file xdot.c.
References xdot_color_stop::color, free(), xdot_color::ling, xdot_linear_grad::n_stops, xdot_radial_grad::n_stops, xdot_color::ring, xdot_linear_grad::stops, xdot_radial_grad::stops, xdot_color::type, xdot_color::u, xd_linear, and xd_radial.
Referenced by freeXOpData().
void jsonXDot | ( | FILE * | fp, |
xdot * | x | ||
) |
Definition at line 736 of file xdot.c.
References _printXDot(), and jsonXDot_Op().
xdot * parseXDot | ( | char * | s | ) |
Definition at line 400 of file xdot.c.
References parseXDotF().
Referenced by write_xdots().
char * parseXDotColor | ( | char * | cp, |
xdot_color * | clr | ||
) |
Definition at line 946 of file xdot.c.
References xdot_color::clr, gv_isalnum(), linGradient(), NULL, radGradient(), xdot_color::type, xdot_color::u, and xd_none.
Referenced by parseOp().
xdot * parseXDotF | ( | char * | s, |
drawfunc_t | opfns[], | ||
size_t | sz | ||
) |
Definition at line 396 of file xdot.c.
References NULL, and parseXDotFOn().
Referenced by init_xdot(), and parseXDot().
xdot * parseXDotFOn | ( | char * | s, |
drawfunc_t | opfns[], | ||
size_t | sz, | ||
xdot * | x | ||
) |
Definition at line 343 of file xdot.c.
References xdot::cnt, error, xdot::flags, free(), gv_alloc(), gv_calloc(), gv_recalloc(), NULL, ops, xdot::ops, parseOp(), xdot::sz, XDBSIZE, and XDOT_PARSE_ERROR.
Referenced by parseXDotF(), and parseXdotwithattrs().
char * sprintXDot | ( | xdot * | x | ) |
Definition at line 724 of file xdot.c.
References _printXDot(), agxbdisown(), agxbprint(), and printXDot_Op().
int statXDot | ( | xdot * | x, |
xdot_stats * | sp | ||
) |
Definition at line 799 of file xdot.c.
References _xdot_op::bezier, xdot_polyline::cnt, xdot::cnt, xdot_stats::cnt, _xdot_op::kind, xdot_stats::n_bezier, xdot_stats::n_bezier_pts, xdot_stats::n_color, xdot_stats::n_ellipse, xdot_stats::n_font, xdot_stats::n_fontchar, xdot_stats::n_gradcolor, xdot_stats::n_image, xdot_stats::n_polygon, xdot_stats::n_polygon_pts, xdot_stats::n_polyline, xdot_stats::n_polyline_pts, xdot_stats::n_style, xdot_stats::n_text, xdot::ops, _xdot_op::polygon, _xdot_op::polyline, xdot::sz, _xdot_op::u, xd_fill_color, xd_filled_bezier, xd_filled_ellipse, xd_filled_polygon, xd_font, xd_fontchar, xd_grad_fill_color, xd_grad_pen_color, xd_image, xd_pen_color, xd_polyline, xd_style, xd_text, xd_unfilled_bezier, xd_unfilled_ellipse, and xd_unfilled_polygon.
Referenced by init_xdot().