12.19. 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.

12.19.1. gtk-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 void gdk_pixbuf_xlib_init_with_depth(Display *, int, int);
extern Visual *xlib_rgb_get_visual(void);
extern void gdk_pixbuf_xlib_render_to_drawable(GdkPixbuf *, Drawable, GC,
					       int, int, int, int, int,
					       int, XlibRgbDither, int,
					       int);
extern GdkPixbuf *gdk_pixbuf_xlib_get_from_drawable(GdkPixbuf *, Drawable,
						    Colormap, Visual *,
						    int, int, int, int,
						    int, int);
extern XVisualInfo *xlib_rgb_get_visual_info(void);
extern void xlib_rgb_set_install(int);
extern void xlib_rgb_cmap_free(XlibRgbCmap *);
extern int xlib_rgb_get_depth(void);
extern long unsigned int xlib_rgb_xpixel_from_rgb(guint32);
extern void xlib_rgb_gc_set_foreground(GC, guint32);
extern void xlib_rgb_set_verbose(int);
extern int xlib_rgb_ditherable(void);
extern void xlib_rgb_set_min_colors(int);
extern void gdk_pixbuf_xlib_render_threshold_alpha(GdkPixbuf *, Pixmap,
						   int, int, int, int, int,
						   int, int);
extern Display *xlib_rgb_get_display(void);
extern void xlib_rgb_init(Display *, Screen *);
extern void gdk_pixbuf_xlib_init(Display *, int);
extern Screen *xlib_rgb_get_screen(void);
extern Colormap xlib_rgb_get_cmap(void);
extern void xlib_draw_gray_image(Drawable, GC, int, int, int, int,
				 XlibRgbDither, unsigned char *, int);
extern void xlib_draw_indexed_image(Drawable, GC, int, int, int, int,
				    XlibRgbDither, unsigned char *, int,
				    XlibRgbCmap *);
extern XlibRgbCmap *xlib_rgb_cmap_new(guint32 *, int);
extern void xlib_draw_rgb_32_image(Drawable, GC, int, int, int, int,
				   XlibRgbDither, unsigned char *, int);
extern void xlib_draw_rgb_image_dithalign(Drawable, GC, int, int, int, int,
					  XlibRgbDither, unsigned char *,
					  int, int, int);
extern void xlib_rgb_gc_set_background(GC, guint32);
extern void gdk_pixbuf_xlib_render_pixmap_and_mask(GdkPixbuf *, Pixmap *,
						   Pixmap *, int);
extern void gdk_pixbuf_xlib_render_to_drawable_alpha(GdkPixbuf *, Drawable,
						     int, int, int, int,
						     int, int,
						     GdkPixbufAlphaMode,
						     int, XlibRgbDither,
						     int, int);
extern void xlib_draw_rgb_image(Drawable, GC, int, int, int, int,
				XlibRgbDither, unsigned char *, int);
extern void xlib_rgb_init_with_depth(Display *, Screen *, int);