]> Pileus Git - ~andy/gtk/blob - gdk/gdkpixbuf.h
Put text after #endif inside a comment to avoid ANSI warning.
[~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 /* Alpha compositing mode */
15 typedef enum
16 {
17   GDK_PIXBUF_ALPHA_BILEVEL,
18   GDK_PIXBUF_ALPHA_FULL
19 } GdkPixbufAlphaMode;
20
21 void gdk_pixbuf_render_threshold_alpha   (GdkPixbuf           *pixbuf,
22                                           GdkBitmap           *bitmap,
23                                           int                  src_x,
24                                           int                  src_y,
25                                           int                  dest_x,
26                                           int                  dest_y,
27                                           int                  width,
28                                           int                  height,
29                                           int                  alpha_threshold);
30 void gdk_pixbuf_render_to_drawable       (GdkPixbuf           *pixbuf,
31                                           GdkDrawable         *drawable,
32                                           GdkGC               *gc,
33                                           int                  src_x,
34                                           int                  src_y,
35                                           int                  dest_x,
36                                           int                  dest_y,
37                                           int                  width,
38                                           int                  height,
39                                           GdkRgbDither         dither,
40                                           int                  x_dither,
41                                           int                  y_dither);
42 void gdk_pixbuf_render_to_drawable_alpha (GdkPixbuf           *pixbuf,
43                                           GdkDrawable         *drawable,
44                                           int                  src_x,
45                                           int                  src_y,
46                                           int                  dest_x,
47                                           int                  dest_y,
48                                           int                  width,
49                                           int                  height,
50                                           GdkPixbufAlphaMode   alpha_mode,
51                                           int                  alpha_threshold,
52                                           GdkRgbDither         dither,
53                                           int                  x_dither,
54                                           int                  y_dither);
55 void gdk_pixbuf_render_pixmap_and_mask   (GdkPixbuf           *pixbuf,
56                                           GdkPixmap          **pixmap_return,
57                                           GdkBitmap          **mask_return,
58                                           int                  alpha_threshold);
59
60 /* Fetching a region from a drawable */
61 GdkPixbuf *gdk_pixbuf_get_from_drawable (GdkPixbuf   *dest,
62                                          GdkDrawable *src,
63                                          GdkColormap *cmap,
64                                          int          src_x,
65                                          int          src_y,
66                                          int          dest_x,
67                                          int          dest_y,
68                                          int          width,
69                                          int          height);
70
71 #ifdef __cplusplus
72 }
73 #endif /* __cplusplus */
74
75 #endif /* __GDK_PIXBUF_H__ */