GdkPixdataDumpType

An enumeration which is used by Pixdata.toCsource to determine the form of C source to be generated. The three values GDK_PIXDATA_DUMP_PIXDATA_STREAM, GDK_PIXDATA_DUMP_PIXDATA_STRUCT and GDK_PIXDATA_DUMP_MACROS are mutually exclusive, as are GDK_PIXBUF_DUMP_GTYPES and GDK_PIXBUF_DUMP_CTYPES. The remaining elements are optional flags that can be freely added.

Values

ValueMeaning
PIXDATA_STREAM0

Generate pixbuf data stream (a single string containing a serialized gdkpixbuf.Pixdata structure in network byte order).

PIXDATA_STRUCT1

Generate gdkpixbuf.Pixdata structure (needs the gdkpixbuf.Pixdata structure definition from gdk-pixdata.h).

MACROS2

Generate <function>*_ROWSTRIDE</function>, <function>*_WIDTH</function>, <function>*_HEIGHT</function>, <function>*_BYTES_PER_PIXEL</function> and <function>*_RLE_PIXEL_DATA</function> or <function>*_PIXEL_DATA</function> macro definitions for the image.

GTYPES0

Generate GLib data types instead of standard C data types.

CTYPES256

Generate standard C data types instead of GLib data types.

STATIC512

Generate static symbols.

CONST1024

Generate const symbols.

RLE_DECODER65536

Provide a <function>*_RUN_LENGTH_DECODE(image_buf, rle_data, size, bpp)</function> macro definition to decode run-length encoded image data.