X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Foutput%2Fcairo-chart.h;h=0864d7e0142e00b45c95b2cec86c5d9b74ddd95b;hb=a4ac3b968fb4e84b7aa428342010c1f439f9f301;hp=090bc9cede577666f7e39caa0298d22a1602ee0e;hpb=39d61ddbc7ad08260bd7e0b28da218fb9a6360a4;p=pspp diff --git a/src/output/cairo-chart.h b/src/output/cairo-chart.h index 090bc9cede..0864d7e014 100644 --- a/src/output/cairo-chart.h +++ b/src/output/cairo-chart.h @@ -44,8 +44,11 @@ struct xrchart_axis /* The geometry of a chart. */ struct xrchart_geometry { - int abscissa_top; - int ordinate_right; + /* Bottom of the abscissa segment */ + int abscissa_bottom; + + /* Left of the ordinate segment */ + int ordinate_left; int title_bottom; @@ -93,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*/