]> Pileus Git - ~andy/gtk/blob - gdk/gdkpixbuf.h
Change prototype to match cairo_set_source_surface().
[~andy/gtk] / gdk / gdkpixbuf.h
1 #ifndef __GDK_PIXBUF_H__
2 #define __GDK_PIXBUF_H__
3
4 #include <cairo.h>
5 #include <gdk/gdktypes.h>
6 #include <gdk/gdkrgb.h>
7 #include <gdk-pixbuf/gdk-pixbuf.h>
8
9 G_BEGIN_DECLS
10
11 /* Rendering to a drawable */
12
13 void gdk_pixbuf_render_threshold_alpha   (GdkPixbuf           *pixbuf,
14                                           GdkBitmap           *bitmap,
15                                           int                  src_x,
16                                           int                  src_y,
17                                           int                  dest_x,
18                                           int                  dest_y,
19                                           int                  width,
20                                           int                  height,
21                                           int                  alpha_threshold);
22 #ifndef GDK_DISABLE_DEPRECATED
23 void gdk_pixbuf_render_to_drawable       (GdkPixbuf           *pixbuf,
24                                           GdkDrawable         *drawable,
25                                           GdkGC               *gc,
26                                           int                  src_x,
27                                           int                  src_y,
28                                           int                  dest_x,
29                                           int                  dest_y,
30                                           int                  width,
31                                           int                  height,
32                                           GdkRgbDither         dither,
33                                           int                  x_dither,
34                                           int                  y_dither);
35 void gdk_pixbuf_render_to_drawable_alpha (GdkPixbuf           *pixbuf,
36                                           GdkDrawable         *drawable,
37                                           int                  src_x,
38                                           int                  src_y,
39                                           int                  dest_x,
40                                           int                  dest_y,
41                                           int                  width,
42                                           int                  height,
43                                           GdkPixbufAlphaMode   alpha_mode,
44                                           int                  alpha_threshold,
45                                           GdkRgbDither         dither,
46                                           int                  x_dither,
47                                           int                  y_dither);
48 #endif /* GDK_DISABLE_DEPRECATED */
49 void gdk_pixbuf_render_pixmap_and_mask_for_colormap (GdkPixbuf    *pixbuf,
50                                                      GdkColormap  *colormap,
51                                                      GdkPixmap   **pixmap_return,
52                                                      GdkBitmap   **mask_return,
53                                                      int           alpha_threshold);
54 #ifndef GDK_MULTIHEAD_SAFE
55 void gdk_pixbuf_render_pixmap_and_mask              (GdkPixbuf    *pixbuf,
56                                                      GdkPixmap   **pixmap_return,
57                                                      GdkBitmap   **mask_return,
58                                                      int           alpha_threshold);
59 #endif
60
61
62 /* Fetching a region from a drawable */
63 GdkPixbuf *gdk_pixbuf_get_from_drawable (GdkPixbuf   *dest,
64                                          GdkDrawable *src,
65                                          GdkColormap *cmap,
66                                          int          src_x,
67                                          int          src_y,
68                                          int          dest_x,
69                                          int          dest_y,
70                                          int          width,
71                                          int          height);
72
73 GdkPixbuf *gdk_pixbuf_get_from_image    (GdkPixbuf   *dest,
74                                          GdkImage    *src,
75                                          GdkColormap *cmap,
76                                          int          src_x,
77                                          int          src_y,
78                                          int          dest_x,
79                                          int          dest_y,
80                                          int          width,
81                                          int          height);
82
83 void gdk_pixbuf_set_as_cairo_source (GdkPixbuf *pixbuf,
84                                      cairo_t   *cr,
85                                      double     pixbuf_x,
86                                      double     pixbuf_y);
87
88 G_END_DECLS
89
90 #endif /* __GDK_PIXBUF_H__ */