X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Frrd_graph.h;h=6681390c11c6fcbb7c153d846bbaa160c78e33fc;hb=946b73abd8b391049b1c3c55ce75cb958fbc6dbb;hp=7e85cd635935d990b17fa3aeb52ab7b0e7832af8;hpb=622adf9826b98d3982278c57ab9a0f8fc6041b03;p=rrdtool.git diff --git a/src/rrd_graph.h b/src/rrd_graph.h index 7e85cd6..6681390 100644 --- a/src/rrd_graph.h +++ b/src/rrd_graph.h @@ -14,6 +14,10 @@ #include "rrd_tool.h" #include "rrd_rpncalc.h" +#ifdef WIN32 +# include +# define MAXPATH MAX_PATH +#endif #define ALTYGRID 0x01 /* use alternative y grid algorithm */ #define ALTAUTOSCALE 0x02 /* use alternative algorithm to find lower and upper bounds */ @@ -61,11 +65,13 @@ enum vdef_op_en { , VDEF_LSLINT /* least squares line y_intercept */ , VDEF_LSLCORREL /* least squares line correlation coefficient */ }; -enum text_prop_en { TEXT_PROP_DEFAULT = 0, /* default settings */ +enum text_prop_en { + TEXT_PROP_DEFAULT = 0, /* default settings */ TEXT_PROP_TITLE, /* properties for the title */ TEXT_PROP_AXIS, /* for the numbers next to the axis */ TEXT_PROP_UNIT, /* for the vertical unit description */ - TEXT_PROP_LEGEND, /* fot the legend below the graph */ + TEXT_PROP_LEGEND, /* for the legend below the graph */ + TEXT_PROP_WATERMARK, /* for the little text to the side of the graph */ TEXT_PROP_LAST }; @@ -87,6 +93,7 @@ typedef struct gfx_color_t { typedef struct text_prop_t { double size; char font[1024]; + PangoFontDescription *font_desc; } text_prop_t; @@ -210,6 +217,7 @@ typedef struct image_desc_t { char *imginfo; /* construct an