mp3splt-gtk: src/drawing_helper.h Source File

mp3splt-gtk 0.9.3.1519

Loading...
Searching...
No Matches
drawing_helper.h
1/**********************************************************
2 *
3 * mp3splt-gtk -- utility based on mp3splt,
4 * for mp3/ogg splitting without decoding
5 *
6 * Copyright: (C) 2005-2014 Alexandru Munteanu
7 * Contact: m@ioalex.net
8 *
9 * http://mp3splt.sourceforge.net/
10 *
11 *********************************************************/
12
13/**********************************************************
14 *
15 * This program is free software; you can redistribute it and/or
16 * modify it under the terms of the GNU General Public License
17 * as published by the Free Software Foundation; either version 2
18 * of the License, or (at your option) any later version.
19 *
20 * This program is distributed in the hope that it will be useful,
21 * but WITHOUT ANY WARRANTY; without even the implied warranty of
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 * GNU General Public License for more details.
24 *
25 * You should have received a copy of the GNU General Public License
26 * along with this program; if not, write to the Free Software
27 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
28 * USA.
29 *
30 *********************************************************/
31
32#ifndef DRAWING_HELPER_H
33
34#define DRAWING_HELPER_H
35
36#include "external_includes.h"
37
38void dh_set_color(cairo_t *cairo, GdkColor *color);
39void dh_set_white_color(cairo_t *cairo_surface);
40void dh_set_red_color(cairo_t *cairo_surface);
41
42void dh_draw_rectangle(cairo_t *cairo, gboolean filled, gint x, gint y,
43 gint width, gint height);
44
45void dh_draw_arc(cairo_t *cairo, gboolean filled, gint x, gint y,
46 double radius, double angle1, double angle2);
47
48void dh_draw_text(cairo_t *cairo, const gchar *text, gint x, gint y);
49void dh_draw_text_with_size(cairo_t *cairo, const gchar *text, gint x, gint y,
50 gdouble font_size);
51
52void dh_draw_line(cairo_t *cairo, gint x1, gint y1, gint x2, gint y2,
53 gboolean line_is_dashed, gboolean stroke);
54void 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);
56
57void draw_point(cairo_t *cairo, gint x, gint y);
58
59#endif
60