X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Foutput%2Fcairo-chart.h;fp=src%2Foutput%2Fcairo-chart.h;h=116a8c990110be01d1e21a900874e18823a703c9;hb=f89d8a893f83ad0cb95819ca60e6f4a718f7d988;hp=24a2dce51690fd0e1007712f6d7dcd56a4602e39;hpb=6a0bfe2697f4de29cc11782ac6bd2c4175554a9c;p=pspp diff --git a/src/output/cairo-chart.h b/src/output/cairo-chart.h index 24a2dce516..116a8c9901 100644 --- a/src/output/cairo-chart.h +++ b/src/output/cairo-chart.h @@ -1,5 +1,5 @@ /* PSPP - a program for statistical analysis. - Copyright (C) 2009, 2011 Free Software Foundation, Inc. + Copyright (C) 2009, 2011, 2015 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -178,5 +178,9 @@ void xrchart_draw_spreadlevel (const struct chart_item *, cairo_t *, void xrchart_draw_scatterplot (const struct chart_item *, cairo_t *, struct xrchart_geometry *); +/* Get the width and height of rendered label text */ +void xrchart_text_extents (cairo_t *cr, const struct xrchart_geometry *geom, + const char *utf8, + double *width, double *height); #endif /* output/cairo-chart.h */