gi-gdkpixbuf-2.0.11: GdkPixbuf bindings

CopyrightWill Thompson, Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.GdkPixbuf.Structs.PixbufFormat

Contents

Description

 

Synopsis

Exported types

newtype PixbufFormat Source #

Instances

BoxedObject PixbufFormat Source # 
((~) * info (ResolvePixbufFormatMethod t PixbufFormat), MethodInfo * info PixbufFormat p) => IsLabel t (PixbufFormat -> p) Source # 

Methods

fromLabel :: Proxy# Symbol t -> PixbufFormat -> p #

((~) * info (ResolvePixbufFormatMethod t PixbufFormat), MethodInfo * info PixbufFormat p) => IsLabelProxy t (PixbufFormat -> p) Source # 
HasAttributeList * PixbufFormat Source # 
((~) * signature (Bool -> m ()), MonadIO m) => MethodInfo * PixbufFormatSetDisabledMethodInfo PixbufFormat signature Source # 
((~) * signature (m Bool), MonadIO m) => MethodInfo * PixbufFormatIsWritableMethodInfo PixbufFormat signature Source # 
((~) * signature (m Bool), MonadIO m) => MethodInfo * PixbufFormatIsScalableMethodInfo PixbufFormat signature Source # 
((~) * signature (Text -> m Bool), MonadIO m) => MethodInfo * PixbufFormatIsSaveOptionSupportedMethodInfo PixbufFormat signature Source # 
((~) * signature (m Bool), MonadIO m) => MethodInfo * PixbufFormatIsDisabledMethodInfo PixbufFormat signature Source # 
((~) * signature (m Text), MonadIO m) => MethodInfo * PixbufFormatGetNameMethodInfo PixbufFormat signature Source # 
((~) * signature (m [Text]), MonadIO m) => MethodInfo * PixbufFormatGetMimeTypesMethodInfo PixbufFormat signature Source # 
((~) * signature (m Text), MonadIO m) => MethodInfo * PixbufFormatGetLicenseMethodInfo PixbufFormat signature Source # 
((~) * signature (m [Text]), MonadIO m) => MethodInfo * PixbufFormatGetExtensionsMethodInfo PixbufFormat signature Source # 
((~) * signature (m Text), MonadIO m) => MethodInfo * PixbufFormatGetDescriptionMethodInfo PixbufFormat signature Source # 
((~) * signature (m ()), MonadIO m) => MethodInfo * PixbufFormatFreeMethodInfo PixbufFormat signature Source # 
((~) * signature (m PixbufFormat), MonadIO m) => MethodInfo * PixbufFormatCopyMethodInfo PixbufFormat signature Source # 
type AttributeList PixbufFormat Source # 

Methods

copy

pixbufFormatCopy Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> PixbufFormat

format: a PixbufFormat

-> m PixbufFormat

Returns: the newly allocated copy of a PixbufFormat. Use pixbufFormatFree to free the resources when done

Creates a copy of format

Since: 2.22

free

pixbufFormatFree Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> PixbufFormat

format: a PixbufFormat

-> m () 

Frees the resources allocated when copying a PixbufFormat using pixbufFormatCopy

Since: 2.22

getDescription

pixbufFormatGetDescription Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> PixbufFormat

format: a PixbufFormat

-> m Text

Returns: a description of the format.

Returns a description of the format.

Since: 2.2

getExtensions

pixbufFormatGetExtensions Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> PixbufFormat

format: a PixbufFormat

-> m [Text]

Returns: a Nothing-terminated array of filename extensions which must be freed with strfreev when it is no longer needed.

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

Since: 2.2

getLicense

pixbufFormatGetLicense Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> PixbufFormat

format: a PixbufFormat

-> m Text

Returns: a string describing the license of format.

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 free when it's no longer needed.

Since: 2.6

getMimeTypes

pixbufFormatGetMimeTypes Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> PixbufFormat

format: a PixbufFormat

-> m [Text]

Returns: a Nothing-terminated array of mime types which must be freed with strfreev when it is no longer needed.

Returns the mime types supported by the format.

Since: 2.2

getName

pixbufFormatGetName Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> PixbufFormat

format: a PixbufFormat

-> m Text

Returns: the name of the format.

Returns the name of the format.

Since: 2.2

isDisabled

pixbufFormatIsDisabled Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> PixbufFormat

format: a PixbufFormat

-> m Bool

Returns: whether this image format is disabled.

Returns whether this image format is disabled. See pixbufFormatSetDisabled.

Since: 2.6

isSaveOptionSupported

pixbufFormatIsSaveOptionSupported Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> PixbufFormat

format: a PixbufFormat

-> Text

optionKey: the name of an option

-> m Bool

Returns: True if the specified option is supported

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

Since: 2.36

isScalable

pixbufFormatIsScalable Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> PixbufFormat

format: a PixbufFormat

-> m Bool

Returns: whether this image format is scalable.

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.

Since: 2.6

isWritable

pixbufFormatIsWritable Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> PixbufFormat

format: a PixbufFormat

-> m Bool

Returns: whether pixbufs can be saved in the given format.

Returns whether pixbufs can be saved in the given format.

Since: 2.2

setDisabled

pixbufFormatSetDisabled Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> PixbufFormat

format: a PixbufFormat

-> Bool

disabled: True to disable the format format

-> m () 

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 pixbufFormatGetLicense.

Since: 2.6