Blame contrib/gdk-pixbuf-xlib/gdk-pixbuf-xlib.h

Packit a4058c
/* GdkPixbuf library - Xlib header file
Packit a4058c
 *
Packit a4058c
 * Authors: John Harper <john@dcs.warwick.ac.uk>
Packit a4058c
 *
Packit a4058c
 * This library is free software; you can redistribute it and/or
Packit a4058c
 * modify it under the terms of the GNU Library General Public
Packit a4058c
 * License as published by the Free Software Foundation; either
Packit a4058c
 * version 2 of the License, or (at your option) any later version.
Packit a4058c
 *
Packit a4058c
 * This library is distributed in the hope that it will be useful,
Packit a4058c
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit a4058c
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit a4058c
 * Library General Public License for more details.
Packit a4058c
 *
Packit a4058c
 * You should have received a copy of the GNU Library General Public
Packit a4058c
 * License along with this library; if not, see <http://www.gnu.org/licenses/>.
Packit a4058c
 */
Packit a4058c
Packit a4058c
#ifndef GDK_PIXBUF_XLIB_H
Packit a4058c
#define GDK_PIXBUF_XLIB_H
Packit a4058c
Packit a4058c
#include <gdk-pixbuf/gdk-pixbuf.h>
Packit a4058c
#include <gdk-pixbuf-xlib/gdk-pixbuf-xlibrgb.h>
Packit a4058c
Packit a4058c
G_BEGIN_DECLS
Packit a4058c
Packit a4058c
#include <X11/Xlib.h>
Packit a4058c
Packit a4058c

Packit a4058c
Packit a4058c
/* init */
Packit a4058c
Packit a4058c
_GDK_PIXBUF_EXTERN
Packit a4058c
void gdk_pixbuf_xlib_init (Display *display, int screen_num);
Packit a4058c
Packit a4058c
_GDK_PIXBUF_EXTERN
Packit a4058c
void gdk_pixbuf_xlib_init_with_depth (Display *display, int screen_num,
Packit a4058c
				      int prefDepth);
Packit a4058c
Packit a4058c

Packit a4058c
Packit a4058c
/* render */
Packit a4058c
Packit a4058c
_GDK_PIXBUF_EXTERN
Packit a4058c
void gdk_pixbuf_xlib_render_threshold_alpha (GdkPixbuf *pixbuf, Pixmap bitmap,
Packit a4058c
					     int src_x, int src_y,
Packit a4058c
					     int dest_x, int dest_y,
Packit a4058c
					     int width, int height,
Packit a4058c
					     int alpha_threshold);
Packit a4058c
Packit a4058c
_GDK_PIXBUF_EXTERN
Packit a4058c
void gdk_pixbuf_xlib_render_to_drawable (GdkPixbuf *pixbuf,
Packit a4058c
					 Drawable drawable, GC gc,
Packit a4058c
					 int src_x, int src_y,
Packit a4058c
					 int dest_x, int dest_y,
Packit a4058c
					 int width, int height,
Packit a4058c
					 XlibRgbDither dither,
Packit a4058c
					 int x_dither, int y_dither);
Packit a4058c
Packit a4058c
Packit a4058c
_GDK_PIXBUF_EXTERN
Packit a4058c
void gdk_pixbuf_xlib_render_to_drawable_alpha (GdkPixbuf *pixbuf,
Packit a4058c
					       Drawable drawable,
Packit a4058c
					       int src_x, int src_y,
Packit a4058c
					       int dest_x, int dest_y,
Packit a4058c
					       int width, int height,
Packit a4058c
					       GdkPixbufAlphaMode alpha_mode,
Packit a4058c
					       int alpha_threshold,
Packit a4058c
					       XlibRgbDither dither,
Packit a4058c
					       int x_dither, int y_dither);
Packit a4058c
Packit a4058c
_GDK_PIXBUF_EXTERN
Packit a4058c
void gdk_pixbuf_xlib_render_pixmap_and_mask (GdkPixbuf *pixbuf,
Packit a4058c
					     Pixmap *pixmap_return,
Packit a4058c
					     Pixmap *mask_return,
Packit a4058c
					     int alpha_threshold);
Packit a4058c
Packit a4058c

Packit a4058c
Packit a4058c
/* drawable */
Packit a4058c
Packit a4058c
_GDK_PIXBUF_EXTERN
Packit a4058c
GdkPixbuf *gdk_pixbuf_xlib_get_from_drawable (GdkPixbuf *dest,
Packit a4058c
					      Drawable src,
Packit a4058c
					      Colormap cmap, Visual *visual,
Packit a4058c
					      int src_x, int src_y,
Packit a4058c
					      int dest_x, int dest_y,
Packit a4058c
					      int width, int height);
Packit a4058c
Packit a4058c
G_END_DECLS
Packit a4058c
Packit a4058c
#endif /* GDK_PIXBUF_XLIB_H */