17.28. Data Definitions for libgdk_pixbuf_xlib-2.0

This section defines global identifiers and their values that are associated with interfaces contained in libgdk_pixbuf_xlib-2.0. These definitions are organized into groups that correspond to system headers. This convention is used as a convenience for the reader, and does not imply the existence of these headers, or their content. Where an interface is defined as requiring a particular system header file all of the data definitions for that system header file presented here shall be in effect.

This section gives data definitions to promote binary application portability, not to repeat source interface definitions available elsewhere. System providers and application developers should use this ABI to supplement - not to replace - source interface definition specifications.

This specification uses the ISO C (1999) C Language as the reference programming language, and data definitions are specified in ISO C format. The C language is used here as a convenient notation. Using a C language description of these data objects does not preclude their use by other programming languages.

17.28.1. gdk-pixbuf-2.0/gdk-pixbuf-xlib/gdk-pixbuf-xlib.h


typedef enum {
    XLIB_RGB_DITHER_NONE = 0,
    XLIB_RGB_DITHER_NORMAL = 1,
    XLIB_RGB_DITHER_MAX = 2
} XlibRgbDither;
typedef struct _XlibRgbCmap {
    unsigned int colors[256];
    unsigned char lut[256];
} XlibRgbCmap;
extern GdkPixbuf *gdk_pixbuf_xlib_get_from_drawable(GdkPixbuf * dest,
						    Drawable src,
						    Colormap cmap,
						    Visual * visual,
						    int src_x, int src_y,
						    int dest_x, int dest_y,
						    int width, int height);
extern void gdk_pixbuf_xlib_init(Display * display, int screen_num);
extern void gdk_pixbuf_xlib_init_with_depth(Display * display,
					    int screen_num, int prefDepth);
extern void gdk_pixbuf_xlib_render_pixmap_and_mask(GdkPixbuf * pixbuf,
						   Pixmap * pixmap_return,
						   Pixmap * mask_return,
						   int alpha_threshold);
extern void gdk_pixbuf_xlib_render_threshold_alpha(GdkPixbuf * pixbuf,
						   Pixmap bitmap,
						   int src_x, int src_y,
						   int dest_x, int dest_y,
						   int width, int height,
						   int alpha_threshold);
extern void gdk_pixbuf_xlib_render_to_drawable(GdkPixbuf * pixbuf,
					       Drawable drawable, GC gc,
					       int src_x, int src_y,
					       int dest_x, int dest_y,
					       int width, int height,
					       XlibRgbDither dither,
					       int x_dither, int y_dither);
extern void gdk_pixbuf_xlib_render_to_drawable_alpha(GdkPixbuf * pixbuf,
						     Drawable drawable,
						     int src_x, int src_y,
						     int dest_x,
						     int dest_y, int width,
						     int height,
						     GdkPixbufAlphaMode
						     alpha_mode,
						     int alpha_threshold,
						     XlibRgbDither dither,
						     int x_dither,
						     int y_dither);
extern void xlib_draw_gray_image(Drawable drawable, GC gc, int x, int y,
				 int width, int height, XlibRgbDither dith,
				 unsigned char *buf, int rowstride);
extern void xlib_draw_indexed_image(Drawable drawable, GC gc, int x, int y,
				    int width, int height,
				    XlibRgbDither dith, unsigned char *buf,
				    int rowstride, XlibRgbCmap * cmap);
extern void xlib_draw_rgb_32_image(Drawable drawable, GC gc, int x, int y,
				   int width, int height,
				   XlibRgbDither dith, unsigned char *buf,
				   int rowstride);
extern void xlib_draw_rgb_image(Drawable drawable, GC gc, int x, int y,
				int width, int height, XlibRgbDither dith,
				unsigned char *rgb_buf, int rowstride);
extern void xlib_draw_rgb_image_dithalign(Drawable drawable, GC gc, int x,
					  int y, int width, int height,
					  XlibRgbDither dith,
					  unsigned char *rgb_buf,
					  int rowstride, int xdith,
					  int ydith);
extern void xlib_rgb_cmap_free(XlibRgbCmap * cmap);
extern XlibRgbCmap *xlib_rgb_cmap_new(guint32 * colors, int n_colors);
extern int xlib_rgb_ditherable(void);
extern void xlib_rgb_gc_set_background(GC gc, guint32 rgb);
extern void xlib_rgb_gc_set_foreground(GC gc, guint32 rgb);
extern Colormap xlib_rgb_get_cmap(void);
extern int xlib_rgb_get_depth(void);
extern Display *xlib_rgb_get_display(void);
extern Screen *xlib_rgb_get_screen(void);
extern Visual *xlib_rgb_get_visual(void);
extern XVisualInfo *xlib_rgb_get_visual_info(void);
extern void xlib_rgb_init(Display * display, Screen * screen);
extern void xlib_rgb_init_with_depth(Display * display, Screen * screen,
				     int prefDepth);
extern void xlib_rgb_set_install(int install);
extern void xlib_rgb_set_min_colors(int min_colors);
extern void xlib_rgb_set_verbose(int verbose);
extern long unsigned int xlib_rgb_xpixel_from_rgb(guint32 rgb);