karbon
gdk-pixbuf-xlib.h
00001 /* GdkPixbuf library - Xlib header file 00002 * 00003 * Authors: John Harper <john@dcs.warwick.ac.uk> 00004 * 00005 * This library is free software; you can redistribute it and/or 00006 * modify it under the terms of the GNU Library General Public 00007 * License as published by the Free Software Foundation; either 00008 * version 2 of the License, or (at your option) any later version. 00009 * 00010 * This library is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 * Library General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU Library General Public 00016 * License along with this library; if not, write to the 00017 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00018 * Boston, MA 02110-1301, USA. 00019 */ 00020 00021 #ifndef GDK_PIXBUF_XLIB_H 00022 #define GDK_PIXBUF_XLIB_H 00023 00024 /* #include <gdk-pixbuf/gdk-pixbuf.h> */ 00025 /* #include <gdk-pixbuf-xlib/gdk-pixbuf-xlibrgb.h> */ 00026 #include <X11/Xlib.h> 00027 00028 00029 00030 /* init */ 00031 00032 void gdk_pixbuf_xlib_init (Display *display, int screen_num); 00033 00034 void gdk_pixbuf_xlib_init_with_depth (Display *display, int screen_num, 00035 int prefDepth); 00036 00037 00038 00039 /* render */ 00040 /* 00041 void gdk_pixbuf_xlib_render_threshold_alpha (GdkPixbuf *pixbuf, Pixmap bitmap, 00042 int src_x, int src_y, 00043 int dest_x, int dest_y, 00044 int width, int height, 00045 int alpha_threshold); 00046 00047 void gdk_pixbuf_xlib_render_to_drawable (GdkPixbuf *pixbuf, 00048 Drawable drawable, GC gc, 00049 int src_x, int src_y, 00050 int dest_x, int dest_y, 00051 int width, int height, 00052 XlibRgbDither dither, 00053 int x_dither, int y_dither); 00054 00055 00056 void gdk_pixbuf_xlib_render_to_drawable_alpha (GdkPixbuf *pixbuf, 00057 Drawable drawable, 00058 int src_x, int src_y, 00059 int dest_x, int dest_y, 00060 int width, int height, 00061 GdkPixbufAlphaMode alpha_mode, 00062 int alpha_threshold, 00063 XlibRgbDither dither, 00064 int x_dither, int y_dither); 00065 00066 void gdk_pixbuf_xlib_render_pixmap_and_mask (GdkPixbuf *pixbuf, 00067 Pixmap *pixmap_return, 00068 Pixmap *mask_return, 00069 int alpha_threshold); 00070 00071 00072 00073 GdkPixbuf *gdk_pixbuf_xlib_get_from_drawable (GdkPixbuf *dest, 00074 Drawable src, 00075 Colormap cmap, Visual *visual, 00076 int src_x, int src_y, 00077 int dest_x, int dest_y, 00078 int width, int height); 00079 */ 00080 #endif /* GDK_PIXBUF_XLIB_H */