summaryrefslogtreecommitdiff
path: root/cairo_text_helpers.h
diff options
context:
space:
mode:
authorStephen M. Cameron <stephenmcameron@gmail.com>2012-03-27 08:14:09 +0200
committerJens Axboe <axboe@kernel.dk>2012-03-27 08:14:09 +0200
commitee2f55b2ab5195c0d7ce7e8f09212ff826ab2751 (patch)
tree1dca532a0f0e9eda96db83bad659563832a5dd59 /cairo_text_helpers.h
parent3ad04399c576bb7935b9a7b8c07d5acf373a7bc4 (diff)
graph: factor out cairo text drawing helpers
Signed-off-by: Stephen M. Cameron <stephenmcameron@gmail.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'cairo_text_helpers.h')
-rw-r--r--cairo_text_helpers.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/cairo_text_helpers.h b/cairo_text_helpers.h
new file mode 100644
index 0000000..f8157d4
--- /dev/null
+++ b/cairo_text_helpers.h
@@ -0,0 +1,18 @@
+#ifndef CAIRO_TEXT_HELPERS_H
+#define CAIRO_TEXT_HELPERS_H
+
+void draw_centered_text(cairo_t *cr, const char *font, double x, double y,
+ double fontsize, const char *text);
+
+void draw_right_justified_text(cairo_t *cr, const char *font,
+ double x, double y,
+ double fontsize, const char *text);
+
+void draw_left_justified_text(cairo_t *cr, const char *font,
+ double x, double y,
+ double fontsize, const char *text);
+
+void draw_vertical_centered_text(cairo_t *cr, const char * font, double x,
+ double y, double fontsize,
+ const char *text);
+#endif