Stephen M. Cameron | ee2f55b | 2012-03-27 08:14:09 +0200 | [diff] [blame] | 1 | #ifndef CAIRO_TEXT_HELPERS_H |
| 2 | #define CAIRO_TEXT_HELPERS_H |
| 3 | |
| 4 | void draw_centered_text(cairo_t *cr, const char *font, double x, double y, |
| 5 | double fontsize, const char *text); |
| 6 | |
| 7 | void draw_right_justified_text(cairo_t *cr, const char *font, |
| 8 | double x, double y, |
| 9 | double fontsize, const char *text); |
| 10 | |
| 11 | void draw_left_justified_text(cairo_t *cr, const char *font, |
| 12 | double x, double y, |
| 13 | double fontsize, const char *text); |
| 14 | |
Jens Axboe | 3c3ed07 | 2012-03-27 09:12:39 +0200 | [diff] [blame] | 15 | void draw_vertical_centered_text(cairo_t *cr, const char *font, double x, |
Stephen M. Cameron | ee2f55b | 2012-03-27 08:14:09 +0200 | [diff] [blame] | 16 | double y, double fontsize, |
| 17 | const char *text); |
| 18 | #endif |