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