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
GdkPixbufFormat
instance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get }
-
pixbuf_format_ptr
Default implementationTyped pointer to the underlying
GdkPixbufFormat
instance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
GdkPixbufFormat
instance.Declaration
Swift
var pixbuf_format_ptr: UnsafeMutablePointer<GdkPixbufFormat>! { get }
-
Required Initialiser for types conforming to
PixbufFormatProtocol
Declaration
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
GdkPixbufFormat
usinggdk_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
TRUE
if the save option specified byoption_key
is 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)
-
description
Extension methodReturns a description of the format.
Declaration
Swift
@inlinable var description: String! { get }
-
extensions
Extension methodReturns the filename extensions typically used for files in the given format.
Declaration
Swift
@inlinable var extensions: UnsafeMutablePointer<UnsafeMutablePointer<gchar>?>! { get }
-
isDisabled
Extension methodReturns whether this image format is disabled.
See
gdk_pixbuf_format_set_disabled()
.Declaration
Swift
@inlinable var isDisabled: Bool { get }
-
isScalable
Extension 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 }
-
isWritable
Extension methodReturns whether pixbufs can be saved in the given format.
Declaration
Swift
@inlinable var isWritable: Bool { get }
-
license
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 var license: String! { get }
-
mimeTypes
Extension methodReturns the mime types supported by the format.
Declaration
Swift
@inlinable var mimeTypes: UnsafeMutablePointer<UnsafeMutablePointer<gchar>?>! { get }
-
name
Extension methodReturns the name of the format.
Declaration
Swift
@inlinable var name: String! { get }
-
_name
Extension methodthe name of the image format
Declaration
Swift
@inlinable var _name: UnsafeMutablePointer<gchar>! { get set }
-
signature
Extension methodthe signature of the module
Declaration
Swift
@inlinable var signature: PixbufModulePatternRef! { get set }
-
domain
Extension methodthe message domain for the
description
Declaration
Swift
@inlinable var domain: UnsafeMutablePointer<gchar>! { get set }
-
_description
Extension methoda description of the image format
Declaration
Swift
@inlinable var _description: UnsafeMutablePointer<gchar>! { get set }
-
_mimeTypes
Extension methodthe MIME types for the image format
Declaration
Swift
@inlinable var _mimeTypes: UnsafeMutablePointer<UnsafeMutablePointer<gchar>?>! { get set }
-
_extensions
Extension methodtypical filename extensions for the image format
Declaration
Swift
@inlinable var _extensions: UnsafeMutablePointer<UnsafeMutablePointer<gchar>?>! { get set }
-
flags
Extension methoda combination of
GdkPixbufFormatFlags
Declaration
Swift
@inlinable var flags: guint32 { get set }
-
disabled
Extension methoda boolean determining whether the loader is disabled`
Declaration
Swift
@inlinable var disabled: gboolean { get set }
-
_license
Extension methoda string containing license information, typically set to shorthands like “GPL”, “LGPL”, etc.
Declaration
Swift
@inlinable var _license: UnsafeMutablePointer<gchar>! { get set }