PixbufFormat

Undocumented in source.

Constructors

this
this(GdkPixbufFormat* gdkPixbufFormat)

Sets our main struct and passes it to the parent class.

Members

Functions

copy
PixbufFormat copy()

Creates a copy of @format

free
void free()

Frees the resources allocated when copying a #GdkPixbufFormat using gdk_pixbuf_format_copy()

getDescription
string getDescription()

Returns a description of the format.

getExtensions
string[] getExtensions()

Returns the filename extensions typically used for files in the given format.

getLicense
string getLicense()

Returns information about the license of the image loader for the format. The returned string should be a shorthand for a wellknown license, e.g. "LGPL", "GPL", "QPL", "GPL/QPL", or "other" to indicate some other license. This string should be freed with g_free() when it's no longer needed.

getMimeTypes
string[] getMimeTypes()

Returns the mime types supported by the format.

getName
string getName()

Returns the name of the format.

getPixbufFormatStruct
GdkPixbufFormat* getPixbufFormatStruct()

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

isDisabled
bool isDisabled()

Returns whether this image format is disabled. See gdk_pixbuf_format_set_disabled().

isScalable
bool isScalable()

Returns whether this image format is scalable. If a file is in a scalable format, it is preferable to load it at the desired size, rather than loading it at the default size and scaling the resulting pixbuf to the desired size.

isWritable
bool isWritable()

Returns whether pixbufs can be saved in the given format.

setDisabled
void setDisabled(bool disabled)

Disables or enables an image format. If a format is disabled, gdk-pixbuf won't use the image loader for this format to load images. Applications can use this to avoid using image loaders with an inappropriate license, see gdk_pixbuf_format_get_license().

Static functions

getType
GType getType()

Variables

gdkPixbufFormat
GdkPixbufFormat* gdkPixbufFormat;

the main Gtk struct

Meta