]> Pileus Git - ~andy/gtk/blob - contrib/gdk-pixbuf-xlib/gdk-pixbuf-xlib.h
4ffc56039f7fb1e67e1e9b073f25ccc7e82219ad
[~andy/gtk] / contrib / gdk-pixbuf-xlib / gdk-pixbuf-xlib.h
1 /* GdkPixbuf library - Xlib header file
2  *
3  * Authors: John Harper <john@dcs.warwick.ac.uk>
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Library General Public
7  * License as published by the Free Software Foundation; either
8  * version 2 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13  * Library General Public License for more details.
14  *
15  * You should have received a copy of the GNU Library General Public
16  * License along with this library; if not, write to the
17  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18  * Boston, MA 02111-1307, USA.
19  */
20
21 #ifndef GDK_PIXBUF_XLIB_H
22 #define GDK_PIXBUF_XLIB_H
23
24 #include <gdk-pixbuf/gdk-pixbuf.h>
25 #include <gdk-pixbuf-xlib/gdk-pixbuf-xlibrgb.h>
26
27 G_BEGIN_DECLS
28
29 #include <X11/Xlib.h>
30
31 \f
32
33 /* init */
34
35 void gdk_pixbuf_xlib_init (Display *display, int screen_num);
36
37 void gdk_pixbuf_xlib_init_with_depth (Display *display, int screen_num,
38                                       int prefDepth);
39
40 \f
41
42 /* render */
43
44 void gdk_pixbuf_xlib_render_threshold_alpha (GdkPixbuf *pixbuf, Pixmap bitmap,
45                                              int src_x, int src_y,
46                                              int dest_x, int dest_y,
47                                              int width, int height,
48                                              int alpha_threshold);
49
50 void gdk_pixbuf_xlib_render_to_drawable (GdkPixbuf *pixbuf,
51                                          Drawable drawable, GC gc,
52                                          int src_x, int src_y,
53                                          int dest_x, int dest_y,
54                                          int width, int height,
55                                          XlibRgbDither dither,
56                                          int x_dither, int y_dither);
57
58
59 void gdk_pixbuf_xlib_render_to_drawable_alpha (GdkPixbuf *pixbuf,
60                                                Drawable drawable,
61                                                int src_x, int src_y,
62                                                int dest_x, int dest_y,
63                                                int width, int height,
64                                                GdkPixbufAlphaMode alpha_mode,
65                                                int alpha_threshold,
66                                                XlibRgbDither dither,
67                                                int x_dither, int y_dither);
68
69 void gdk_pixbuf_xlib_render_pixmap_and_mask (GdkPixbuf *pixbuf,
70                                              Pixmap *pixmap_return,
71                                              Pixmap *mask_return,
72                                              int alpha_threshold);
73
74 \f
75
76 /* drawable */
77
78 GdkPixbuf *gdk_pixbuf_xlib_get_from_drawable (GdkPixbuf *dest,
79                                               Drawable src,
80                                               Colormap cmap, Visual *visual,
81                                               int src_x, int src_y,
82                                               int dest_x, int dest_y,
83                                               int width, int height);
84
85 G_END_DECLS
86
87 #endif /* GDK_PIXBUF_XLIB_H */