X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Frrd_graph.h;h=d222f9ae5d5e16ba05a64241e5ab1b1a0a1896b3;hb=3c8cee9e032f175c987c538a49e6dc0440789e02;hp=b86859c453e53c40974354ee8fce87860b6fdda1;hpb=c2a7f0a7c81f0e60e6e2204bac700388f228bf87;p=rrdtool.git diff --git a/src/rrd_graph.h b/src/rrd_graph.h index b86859c..d222f9a 100644 --- a/src/rrd_graph.h +++ b/src/rrd_graph.h @@ -25,7 +25,7 @@ enum gf_en {GF_PRINT=0,GF_GPRINT,GF_COMMENT,GF_HRULE,GF_VRULE,GF_LINE, GF_DEF, GF_CDEF, GF_VDEF, GF_PART}; -enum if_en {IF_GIF=0,IF_PNG=1}; +enum if_en {IF_PNG=0}; enum vdef_op_en { VDEF_MAXIMUM /* like the MAX in (G)PRINT */ @@ -118,7 +118,7 @@ typedef struct image_desc_t { /* configuration of graph */ char graphfile[MAXPATH]; /* filename for graphic */ - long xsize,ysize; /* graph area size in pixels */ + long xsize,ysize,piesize; /* graph area size in pixels */ double zoom; /* zoom for graph */ gfx_color_t graph_col[__GRC_END__]; /* real colors for the graph */ text_prop_t text_prop[TEXT_PROP_LAST]; /* text properties */ @@ -147,6 +147,7 @@ typedef struct image_desc_t { /* status information */ long xorigin,yorigin;/* where is (0,0) of the graph */ + long pie_x,pie_y; /* where is the centerpoint */ long xgif,ygif; /* total size of the gif */ int interlaced; /* will the graph be interlaced? */ double magfact; /* numerical magnitude*/ @@ -207,3 +208,4 @@ int bad_format(char *); int vdef_parse(struct graph_desc_t *,char *); int vdef_calc(image_desc_t *, int); int vdef_percent_compar(const void *,const void *); +int graph_size_location(image_desc_t *, int, int);