X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Foutput%2Fcairo-chart.h;h=646b1cc3d7e97eaa49d86338a1d6eb2b7b63e2e8;hb=df2f1ae30c2835a39f4bc6b0c14f10a2090d9401;hp=f415d1b9152d24a0ec8ca9ead02824e138c05aa8;hpb=7fea15b38b74727361ae21b88789b5eacbc3048e;p=pspp diff --git a/src/output/cairo-chart.h b/src/output/cairo-chart.h index f415d1b915..646b1cc3d7 100644 --- a/src/output/cairo-chart.h +++ b/src/output/cairo-chart.h @@ -74,7 +74,7 @@ void xrchart_geometry_init (cairo_t *, struct xrchart_geometry *, double width, double length); void xrchart_geometry_free (cairo_t *, struct xrchart_geometry *); -#define XRCHART_N_COLOURS 9 +#define XRCHART_N_COLOURS 27 extern const struct xrchart_colour data_colour[]; enum tick_orientation @@ -96,13 +96,19 @@ void xrchart_draw_marker (cairo_t *, double x, double y, enum xrmarker_type, void xrchart_label (cairo_t *, int horz_justify, int vert_justify, double font_size, const char *); +void xrchart_label_rotate (cairo_t *cr, int horz_justify, int vert_justify, + double font_size, const char *string, double angle); + + /* Draw a tick mark at position If label is non zero, then print it at the tick mark */ void draw_tick (cairo_t *, const struct xrchart_geometry *, - enum tick_orientation orientation, double position, + enum tick_orientation orientation, + bool rotated, + double position, const char *label, ...) - PRINTF_FORMAT (5, 6); + PRINTF_FORMAT (6, 7); /* Write the title on a chart*/