blob: 014001ad2f65fde81a0dc01cffb9f4d101367d8f [file] [log] [blame]
Stephen M. Cameronee2f55b2012-03-27 08:14:09 +02001#ifndef CAIRO_TEXT_HELPERS_H
2#define CAIRO_TEXT_HELPERS_H
3
4void draw_centered_text(cairo_t *cr, const char *font, double x, double y,
5 double fontsize, const char *text);
6
7void draw_right_justified_text(cairo_t *cr, const char *font,
8 double x, double y,
9 double fontsize, const char *text);
10
11void draw_left_justified_text(cairo_t *cr, const char *font,
12 double x, double y,
13 double fontsize, const char *text);
14
Jens Axboe3c3ed072012-03-27 09:12:39 +020015void draw_vertical_centered_text(cairo_t *cr, const char *font, double x,
Stephen M. Cameronee2f55b2012-03-27 08:14:09 +020016 double y, double fontsize,
17 const char *text);
18#endif