projects
/
rrdtool.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
"!" takes a higher preference than "||" this means rrd_update N:: would
[rrdtool.git]
/
src
/
rrd_graph.h
diff --git
a/src/rrd_graph.h
b/src/rrd_graph.h
index
2854ed6
..
8fb96d6
100644
(file)
--- a/
src/rrd_graph.h
+++ b/
src/rrd_graph.h
@@
-22,9
+22,10
@@
enum grc_en {GRC_CANVAS=0,GRC_BACK,GRC_SHADEA,GRC_SHADEB,
enum gf_en {GF_PRINT=0,GF_GPRINT,GF_COMMENT,GF_HRULE,GF_VRULE,GF_LINE,
GF_AREA,GF_STACK,GF_TICK,
enum gf_en {GF_PRINT=0,GF_GPRINT,GF_COMMENT,GF_HRULE,GF_VRULE,GF_LINE,
GF_AREA,GF_STACK,GF_TICK,
- GF_DEF, GF_CDEF, GF_VDEF};
+ GF_DEF, GF_CDEF, GF_VDEF,
+ GF_PART};
-enum if_en {IF_
GIF=0,IF_PNG=1
};
+enum if_en {IF_
PNG=0,IF_SVG
};
enum vdef_op_en {
VDEF_MAXIMUM /* like the MAX in (G)PRINT */
enum vdef_op_en {
VDEF_MAXIMUM /* like the MAX in (G)PRINT */
@@
-117,7
+118,7
@@
typedef struct image_desc_t {
/* configuration of graph */
char graphfile[MAXPATH]; /* filename for graphic */
/* 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 */
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 */
@@
-146,6
+147,7
@@
typedef struct image_desc_t {
/* status information */
long xorigin,yorigin;/* where is (0,0) of the graph */
/* 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*/
long xgif,ygif; /* total size of the gif */
int interlaced; /* will the graph be interlaced? */
double magfact; /* numerical magnitude*/
@@
-191,6
+193,7
@@
void axis_paint( image_desc_t *, gfx_canvas_t *);
void grid_paint( image_desc_t *, gfx_canvas_t *);
int lazy_check(image_desc_t *);
int graph_paint(image_desc_t *, char ***);
void grid_paint( image_desc_t *, gfx_canvas_t *);
int lazy_check(image_desc_t *);
int graph_paint(image_desc_t *, char ***);
+void pie_part(gfx_canvas_t *, gfx_color_t, double, double, double, double, double);
int gdes_alloc(image_desc_t *);
int scan_for_col(char *, int, char *);
int rrd_graph(int, char **, char ***, int *, int *);
int gdes_alloc(image_desc_t *);
int scan_for_col(char *, int, char *);
int rrd_graph(int, char **, char ***, int *, int *);
@@
-205,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 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);