9
|
1 /*
|
|
2 * GQview
|
|
3 * (C) 2004 John Ellis
|
|
4 *
|
|
5 * Author: John Ellis
|
|
6 *
|
|
7 * This software is released under the GNU General Public License (GNU GPL).
|
|
8 * Please read the included file COPYING for more information.
|
|
9 * This software comes with no warranty of any kind, use at your own risk!
|
|
10 */
|
|
11
|
|
12
|
|
13 #ifndef PIXBUF_UTIL_H
|
|
14 #define PIXBUF_UTIL_H
|
|
15
|
|
16
|
|
17 gboolean pixbuf_to_file_as_png (GdkPixbuf *pixbuf, const char *filename);
|
|
18 gboolean pixbuf_to_file_as_jpg(GdkPixbuf *pixbuf, const gchar *filename, gint quality);
|
|
19
|
|
20
|
|
21 GdkPixbuf *pixbuf_inline(const gchar *key);
|
|
22
|
|
23 #define PIXBUF_INLINE_FOLDER_CLOSED "folder_closed"
|
|
24 #define PIXBUF_INLINE_FOLDER_LOCKED "folder_locked"
|
|
25 #define PIXBUF_INLINE_FOLDER_OPEN "folder_open"
|
|
26 #define PIXBUF_INLINE_FOLDER_UP "folder_up"
|
|
27 #define PIXBUF_INLINE_SCROLLER "scroller"
|
|
28 #define PIXBUF_INLINE_BROKEN "broken"
|
|
29 #define PIXBUF_INLINE_LOGO "logo"
|
|
30
|
|
31
|
|
32 GdkPixbuf *pixbuf_copy_rotate_90(GdkPixbuf *src, gint counter_clockwise);
|
|
33 GdkPixbuf *pixbuf_copy_mirror(GdkPixbuf *src, gint mirror, gint flip);
|
|
34
|
|
35
|
|
36 void pixbuf_draw_rect_fill(GdkPixbuf *pb,
|
|
37 gint x, gint y, gint w, gint h,
|
|
38 gint r, gint g, gint b, gint a);
|
|
39
|
|
40 void pixbuf_draw_rect(GdkPixbuf *pb,
|
|
41 gint x, gint y, gint w, gint h,
|
|
42 gint r, gint g, gint b, gint a,
|
|
43 gint left, gint right, gint top, gint bottom);
|
|
44
|
|
45 void pixbuf_set_rect_fill(GdkPixbuf *pb,
|
|
46 gint x, gint y, gint w, gint h,
|
|
47 gint r, gint g, gint b, gint a);
|
|
48
|
|
49 void pixbuf_set_rect(GdkPixbuf *pb,
|
|
50 gint x, gint y, gint w, gint h,
|
|
51 gint r, gint g, gint b, gint a,
|
|
52 gint left, gint right, gint top, gint bottom);
|
|
53
|
|
54 void pixbuf_pixel_set(GdkPixbuf *pb, gint x, gint y, gint r, gint g, gint b, gint a);
|
|
55
|
|
56
|
|
57 void pixbuf_draw_layout(GdkPixbuf *pixbuf, PangoLayout *layout, GtkWidget *widget,
|
|
58 gint x, gint y,
|
|
59 guint8 r, guint8 g, guint8 b, guint8 a);
|
|
60
|
|
61
|
|
62 #endif
|
|
63
|
|
64
|