32 #ifndef DRAWING_HELPER_H
34 #define DRAWING_HELPER_H
36 #include "external_includes.h"
38 void dh_set_color(cairo_t *cairo, GdkColor *color);
39 void dh_set_white_color(cairo_t *cairo_surface);
40 void dh_set_red_color(cairo_t *cairo_surface);
42 void dh_draw_rectangle(cairo_t *cairo, gboolean filled, gint x, gint y,
43 gint width, gint height);
45 void dh_draw_arc(cairo_t *cairo, gboolean filled, gint x, gint y,
46 double radius,
double angle1,
double angle2);
48 void dh_draw_text(cairo_t *cairo,
const gchar *text, gint x, gint y);
49 void dh_draw_text_with_size(cairo_t *cairo,
const gchar *text, gint x, gint y,
52 void dh_draw_line(cairo_t *cairo, gint x1, gint y1, gint x2, gint y2,
53 gboolean line_is_dashed, gboolean stroke);
54 void dh_draw_line_with_width(cairo_t *cairo, gint x1, gint y1, gint x2, gint y2,
55 gboolean line_is_dashed, gboolean stroke,
double line_width);
57 void draw_point(cairo_t *cairo, gint x, gint y);