PixbufFormatProtocol
public protocol PixbufFormatProtocol
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.
The PixbufFormatProtocol protocol exposes the methods and properties of an underlying GdkPixbufFormat instance.
The default implementation of these can be found in the protocol extension below.
For a concrete class that implements these methods and properties, see PixbufFormat.
Alternatively, use PixbufFormatRef as a lighweight, unowned reference if you already have an instance you just want to use.
-
Untyped pointer to the underlying
GdkPixbufFormatinstance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get } -
pixbuf_format_ptrDefault implementationTyped pointer to the underlying
GdkPixbufFormatinstance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
GdkPixbufFormatinstance.Declaration
Swift
var pixbuf_format_ptr: UnsafeMutablePointer<GdkPixbufFormat>! { get } -
Required Initialiser for types conforming to
PixbufFormatProtocolDeclaration
Swift
init(raw: UnsafeMutableRawPointer)
-
copy()Extension methodCreates a copy of
format.Declaration
Swift
@inlinable func copy() -> GdkPixBuf.PixbufFormatRef! -
free()Extension methodFrees the resources allocated when copying a
GdkPixbufFormatusinggdk_pixbuf_format_copy()Declaration
Swift
@inlinable func free() -
getDescription()Extension methodReturns a description of the format.
Declaration
Swift
@inlinable func getDescription() -> String! -
getExtensions()Extension methodReturns the filename extensions typically used for files in the given format.
Declaration
Swift
@inlinable func getExtensions() -> UnsafeMutablePointer<UnsafeMutablePointer<gchar>?>! -
getLicense()Extension methodReturns information about the license of the image loader for the format.
The returned string should be a shorthand for a well known license, e.g. “LGPL”, “GPL”, “QPL”, “GPL/QPL”, or “other” to indicate some other license.
Declaration
Swift
@inlinable func getLicense() -> String! -
getMimeTypes()Extension methodReturns the mime types supported by the format.
Declaration
Swift
@inlinable func getMimeTypes() -> UnsafeMutablePointer<UnsafeMutablePointer<gchar>?>! -
getName()Extension methodReturns the name of the format.
Declaration
Swift
@inlinable func getName() -> String! -
isSaveOptionSupported(optionKey:Extension method) Returns
TRUEif the save option specified byoption_keyis supported when saving a pixbuf using the module implementingformat.See
gdk_pixbuf_save()for more information about option keys.Declaration
Swift
@inlinable func isSaveOptionSupported(optionKey: UnsafePointer<gchar>!) -> Bool -
set(disabled:Extension method) Disables or enables an image format.
If a format is disabled, GdkPixbuf 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().Declaration
Swift
@inlinable func set(disabled: Bool) -
descriptionExtension methodReturns a description of the format.
Declaration
Swift
@inlinable var description: String! { get } -
extensionsExtension methodReturns the filename extensions typically used for files in the given format.
Declaration
Swift
@inlinable var extensions: UnsafeMutablePointer<UnsafeMutablePointer<gchar>?>! { get } -
isDisabledExtension methodReturns whether this image format is disabled.
See
gdk_pixbuf_format_set_disabled().Declaration
Swift
@inlinable var isDisabled: Bool { get } -
isScalableExtension methodReturns 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.
Declaration
Swift
@inlinable var isScalable: Bool { get } -
isWritableExtension methodReturns whether pixbufs can be saved in the given format.
Declaration
Swift
@inlinable var isWritable: Bool { get } -
licenseExtension methodReturns information about the license of the image loader for the format.
The returned string should be a shorthand for a well known license, e.g. “LGPL”, “GPL”, “QPL”, “GPL/QPL”, or “other” to indicate some other license.
Declaration
Swift
@inlinable var license: String! { get } -
mimeTypesExtension methodReturns the mime types supported by the format.
Declaration
Swift
@inlinable var mimeTypes: UnsafeMutablePointer<UnsafeMutablePointer<gchar>?>! { get } -
nameExtension methodReturns the name of the format.
Declaration
Swift
@inlinable var name: String! { get } -
_nameExtension methodthe name of the image format
Declaration
Swift
@inlinable var _name: UnsafeMutablePointer<gchar>! { get set } -
signatureExtension methodthe signature of the module
Declaration
Swift
@inlinable var signature: PixbufModulePatternRef! { get set } -
domainExtension methodthe message domain for the
descriptionDeclaration
Swift
@inlinable var domain: UnsafeMutablePointer<gchar>! { get set } -
_descriptionExtension methoda description of the image format
Declaration
Swift
@inlinable var _description: UnsafeMutablePointer<gchar>! { get set } -
_mimeTypesExtension methodthe MIME types for the image format
Declaration
Swift
@inlinable var _mimeTypes: UnsafeMutablePointer<UnsafeMutablePointer<gchar>?>! { get set } -
_extensionsExtension methodtypical filename extensions for the image format
Declaration
Swift
@inlinable var _extensions: UnsafeMutablePointer<UnsafeMutablePointer<gchar>?>! { get set } -
flagsExtension methoda combination of
GdkPixbufFormatFlagsDeclaration
Swift
@inlinable var flags: guint32 { get set } -
disabledExtension methoda boolean determining whether the loader is disabled`
Declaration
Swift
@inlinable var disabled: gboolean { get set } -
_licenseExtension methoda string containing license information, typically set to shorthands like “GPL”, “LGPL”, etc.
Declaration
Swift
@inlinable var _license: UnsafeMutablePointer<gchar>! { get set }
View on GitHub
Install in Dash
PixbufFormatProtocol Protocol Reference