:right-sidebar: True
PixdataDumpType
===================================================================
.. currentmodule:: gi.repository.GdkPixdata
.. deprecated:: 2.32
Please do not use it in newly written code
.. class:: PixdataDumpType
:no-contents-entry:
An enumeration which is used by :func:`~gi.repository.GdkPixdata.Pixdata.to_csource` 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.
Fields
------
.. rst-class:: interim-class
.. class:: PixdataDumpType
:no-index:
.. attribute:: CONST
Generate const symbols.
.. attribute:: CTYPES
Generate standard C data types instead of
GLib data types.
.. attribute:: GTYPES
Generate GLib data types instead of
standard C data types.
.. attribute:: MACROS
Generate *_ROWSTRIDE,
*_WIDTH, *_HEIGHT,
*_BYTES_PER_PIXEL and
*_RLE_PIXEL_DATA or *_PIXEL_DATA
macro definitions for the image.
.. attribute:: PIXDATA_STREAM
Generate pixbuf data stream (a single
string containing a serialized :obj:`~gi.repository.GdkPixdata.Pixdata` structure in network byte
order).
.. attribute:: PIXDATA_STRUCT
Generate :obj:`~gi.repository.GdkPixdata.Pixdata` structure (needs
the :obj:`~gi.repository.GdkPixdata.Pixdata` structure definition from gdk-pixdata.h).
.. attribute:: RLE_DECODER
Provide a *_RUN_LENGTH_DECODE(image_buf, rle_data, size, bpp)
macro definition to decode run-length encoded image data.
.. attribute:: STATIC
Generate static symbols.