PixbufFormat

A GdkPixbufFormat contains information about the image format accepted by a module.

Only modules should access the fields directly, applications should use the gdk_pixbuf_format_* family of functions.

Constructors

this
this(GdkPixbufFormat* gdkPixbufFormat, bool ownedRef)

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

Destructor

~this
~this()
Undocumented in source.

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.

getMimeTypes
string[] getMimeTypes()

Returns the mime types supported by the format.

getName
string getName()

Returns the name of the format.

getPixbufFormatStruct
GdkPixbufFormat* getPixbufFormatStruct(bool transferOwnership)

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.

isSaveOptionSupported
bool isSaveOptionSupported(string optionKey)

Returns TRUE if the save option specified by @option_key is supported when saving a pixbuf using the module implementing @format.

isScalable
bool isScalable()

Returns whether this image format is scalable.

isWritable
bool isWritable()

Returns whether pixbufs can be saved in the given format.

setDisabled
void setDisabled(bool disabled)

Disables or enables an image format.

Properties

description
string description [@property getter]
string description [@property setter]

a description of the image format

disabled
bool disabled [@property getter]
bool disabled [@property setter]

a boolean determining whether the loader is disabled`

domain
string domain [@property getter]
string domain [@property setter]

the message domain for the description

extensions
string[] extensions [@property getter]
string[] extensions [@property setter]

typical filename extensions for the image format

flags
uint flags [@property getter]
uint flags [@property setter]

a combination of GdkPixbufFormatFlags

license
string license [@property getter]
string license [@property setter]

a string containing license information, typically set to shorthands like "GPL", "LGPL", etc.

mimeTypes
string[] mimeTypes [@property getter]
string[] mimeTypes [@property setter]

the MIME types for the image format

name
string name [@property getter]
string name [@property setter]

the name of the image format

signature
GdkPixbufModulePattern* signature [@property getter]
GdkPixbufModulePattern* signature [@property setter]

the signature of the module

Static functions

getType
GType getType()

Variables

gdkPixbufFormat
GdkPixbufFormat* gdkPixbufFormat;

the main Gtk struct

ownedRef
bool ownedRef;
Undocumented in source.

Meta