gdkpixbuf.c.types

Undocumented in source.

Public Imports

gio.c.types
public import gio.c.types;
glib.c.types
public import glib.c.types;
gobject.c.types
public import gobject.c.types;

Members

Aliases

GdkPixbufDestroyNotify
alias GdkPixbufDestroyNotify = void function(char* pixels, void* data)

A function of this type is responsible for freeing the pixel array of a pixbuf. The Pixbuf.newFromData function lets you pass in a pre-allocated pixel array so that a pixbuf can be created from it; in this case you will need to pass in a function of GdkPixbufDestroyNotify so that the pixel data can be freed when the pixbuf is finalized.

GdkPixbufSaveFunc
alias GdkPixbufSaveFunc = int function(char* buf, size_t count, GError** error, void* data)

Specifies the type of the function passed to Pixbuf.saveToCallback. It is called once for each block of bytes that is "written" by Pixbuf.saveToCallback. If successful it should return TRUE. If an error occurs it should set error and return FALSE, in which case Pixbuf.saveToCallback will fail with the same error.

Enums

GdkColorspace
enum GdkColorspace

This enumeration defines the color spaces that are supported by the gdk-pixbuf library. Currently only RGB is supported.

GdkInterpType
enum GdkInterpType

This enumeration describes the different interpolation modes that can be used with the scaling functions. GDK_INTERP_NEAREST is the fastest scaling method, but has horrible quality when scaling down. GDK_INTERP_BILINEAR is the best choice if you aren't sure what to choose, it has a good speed/quality balance.

GdkPixbufAlphaMode
enum GdkPixbufAlphaMode

These values can be passed to Pixbuf.xlibRenderToDrawableAlpha to control how the alpha channel of an image should be handled. This function can create a bilevel clipping mask (black and white) and use it while painting the image. In the future, when the X Window System gets an alpha channel extension, it will be possible to do full alpha compositing onto arbitrary drawables. For now both cases fall back to a bilevel clipping mask.

GdkPixbufError
enum GdkPixbufError

An error code in the GDK_PIXBUF_ERROR domain. Many gdk-pixbuf operations can cause errors in this domain, or in the G_FILE_ERROR domain.

GdkPixbufRotation
enum GdkPixbufRotation

The possible rotations which can be passed to Pixbuf.rotateSimple. To make them easier to use, their numerical values are the actual degrees.

GdkPixdataDumpType
enum 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.

GdkPixdataType
enum GdkPixdataType

An enumeration containing three sets of flags for a gdkpixbuf.Pixdata struct: one for the used colorspace, one for the width of the samples and one for the encoding of the pixel data.

Manifest constants

PIXBUF_MAGIC_NUMBER
enum PIXBUF_MAGIC_NUMBER;

Magic number for gdkpixbuf.Pixdata structures.

PIXBUF_MAJOR
enum PIXBUF_MAJOR;

Major version of gdk-pixbuf library, that is the "0" in "0.8.2" for example.

PIXBUF_MICRO
enum PIXBUF_MICRO;

Micro version of gdk-pixbuf library, that is the "2" in "0.8.2" for example.

PIXBUF_MINOR
enum PIXBUF_MINOR;

Minor version of gdk-pixbuf library, that is the "8" in "0.8.2" for example.

PIXBUF_VERSION
enum PIXBUF_VERSION;

Contains the full version of the gdk-pixbuf header as a string. This is the version being compiled against; contrast with gdk_pixbuf_version

PIXDATA_HEADER_LENGTH
enum PIXDATA_HEADER_LENGTH;

The length of a gdkpixbuf.Pixdata structure without the pixel_data pointer.

Structs

GdkPixbufLoaderClass
struct GdkPixbufLoaderClass

Undocumented in source.

GdkPixdata
struct GdkPixdata

Undocumented in source.