PixbufFormat

class PixbufFormat(pointer: <Error class: unknown class><<Error class: unknown class>>, cleaner: <Error class: unknown class>? = null)

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.

Since

2.2

Constructors

Link copied to clipboard
constructor()

Allocate a new PixbufFormat.

constructor(scope: <Error class: unknown class>)

Allocate a new PixbufFormat using the provided AutofreeScope.

constructor(name: String?, signature: PixbufModulePattern?, domain: String?, description: String?, flags: <Error class: unknown class>, disabled: Boolean, license: String?)

Allocate a new PixbufFormat.

constructor(name: String?, signature: PixbufModulePattern?, domain: String?, description: String?, flags: <Error class: unknown class>, disabled: Boolean, license: String?, scope: <Error class: unknown class>)

Allocate a new PixbufFormat using the provided AutofreeScope.

constructor(pointer: <Error class: unknown class><<Error class: unknown class>>, cleaner: <Error class: unknown class>? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

a description of the image format

Link copied to clipboard

a boolean determining whether the loader is disabled`

Link copied to clipboard

the message domain for the description

Link copied to clipboard

typical filename extensions for the image format

Link copied to clipboard
var flags: <Error class: unknown class>

a combination of GdkPixbufFormatFlags

Link copied to clipboard
val gdkpixbufPixbufFormatPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard

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

Link copied to clipboard

the MIME types for the image format

Link copied to clipboard
var name: String?

the name of the image format

Link copied to clipboard

the signature of the module

Functions

Link copied to clipboard

Creates a copy of format.

Link copied to clipboard
fun free()

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

Link copied to clipboard

Returns a description of the format.

Link copied to clipboard

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

Link copied to clipboard

Returns information about the license of the image loader for the format.

Link copied to clipboard

Returns the mime types supported by the format.

Link copied to clipboard
fun getName(): String?

Returns the name of the format.

Link copied to clipboard

Returns whether this image format is disabled.

Link copied to clipboard

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

Link copied to clipboard

Returns whether this image format is scalable.

Link copied to clipboard

Returns whether pixbufs can be saved in the given format.

Link copied to clipboard
fun setDisabled(disabled: Boolean)

Disables or enables an image format.

Link copied to clipboard
open override fun toString(): String