Struct gdk_pixbuf::PixbufFormat[][src]

pub struct PixbufFormat(_);
Expand description

A PixbufFormat contains information about the image format accepted by a module. Only modules should access the fields directly, applications should use the <function>gdk_pixbuf_format_*</function> functions.

Implementations

Returns a description of the format.

Returns

a description of the format.

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

Returns

a None-terminated array of filename extensions which must be freed with g_strfreev() when it is no longer needed.

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.

Returns

a string describing the license of self.

Returns the mime types supported by the format.

Returns

a None-terminated array of mime types which must be freed with g_strfreev() when it is no longer needed.

Returns the name of the format.

Returns

the name of the format.

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

Returns

whether this image format is disabled.

This is supported on crate feature v2_36 only.

Returns true if the save option specified by option_key is supported when saving a pixbuf using the module implementing self. See gdk_pixbuf_save() for more information about option keys.

option_key

the name of an option

Returns

true if the specified option is supported

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.

Returns

whether this image format is scalable.

Returns whether pixbufs can be saved in the given format.

Returns

whether pixbufs can be saved in the given format.

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 license().

disabled

true to disable the format self

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

Restrict a value to a certain interval. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

Returns the type identifier of Self.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.