+static inline void draw_centered_text(struct graph *g, cairo_t *cr, double x, double y,
+ double fontsize, const char *text)
+{
+ draw_aligned_text(g, cr, x, y, fontsize, text, CENTERED);
+}
+
+static inline void draw_right_justified_text(struct graph *g, cairo_t *cr,
+ double x, double y,
+ double fontsize, const char *text)
+{
+ draw_aligned_text(g, cr, x, y, fontsize, text, RIGHT_JUSTIFIED);
+}
+
+static inline void draw_left_justified_text(struct graph *g, cairo_t *cr,
+ double x, double y,
+ double fontsize, const char *text)
+{
+ draw_aligned_text(g, cr, x, y, fontsize, text, LEFT_JUSTIFIED);
+}
+