Copyright | Will Thompson, Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
Safe Haskell | None |
Language | Haskell2010 |
- newtype PixbufFormat = PixbufFormat (ManagedPtr PixbufFormat)
- noPixbufFormat :: Maybe PixbufFormat
- data PixbufFormatCopyMethodInfo
- pixbufFormatCopy :: (HasCallStack, MonadIO m) => PixbufFormat -> m PixbufFormat
- data PixbufFormatFreeMethodInfo
- pixbufFormatFree :: (HasCallStack, MonadIO m) => PixbufFormat -> m ()
- data PixbufFormatGetDescriptionMethodInfo
- pixbufFormatGetDescription :: (HasCallStack, MonadIO m) => PixbufFormat -> m Text
- data PixbufFormatGetExtensionsMethodInfo
- pixbufFormatGetExtensions :: (HasCallStack, MonadIO m) => PixbufFormat -> m [Text]
- data PixbufFormatGetLicenseMethodInfo
- pixbufFormatGetLicense :: (HasCallStack, MonadIO m) => PixbufFormat -> m Text
- data PixbufFormatGetMimeTypesMethodInfo
- pixbufFormatGetMimeTypes :: (HasCallStack, MonadIO m) => PixbufFormat -> m [Text]
- data PixbufFormatGetNameMethodInfo
- pixbufFormatGetName :: (HasCallStack, MonadIO m) => PixbufFormat -> m Text
- data PixbufFormatIsDisabledMethodInfo
- pixbufFormatIsDisabled :: (HasCallStack, MonadIO m) => PixbufFormat -> m Bool
- data PixbufFormatIsSaveOptionSupportedMethodInfo
- pixbufFormatIsSaveOptionSupported :: (HasCallStack, MonadIO m) => PixbufFormat -> Text -> m Bool
- data PixbufFormatIsScalableMethodInfo
- pixbufFormatIsScalable :: (HasCallStack, MonadIO m) => PixbufFormat -> m Bool
- data PixbufFormatIsWritableMethodInfo
- pixbufFormatIsWritable :: (HasCallStack, MonadIO m) => PixbufFormat -> m Bool
- data PixbufFormatSetDisabledMethodInfo
- pixbufFormatSetDisabled :: (HasCallStack, MonadIO m) => PixbufFormat -> Bool -> m ()
Exported types
newtype PixbufFormat Source #
Methods
copy
data PixbufFormatCopyMethodInfo Source #
((~) * signature (m PixbufFormat), MonadIO m) => MethodInfo * PixbufFormatCopyMethodInfo PixbufFormat signature Source # | |
:: (HasCallStack, MonadIO m) | |
=> PixbufFormat |
|
-> m PixbufFormat | Returns: the newly allocated copy of a |
Creates a copy of format
Since: 2.22
free
data PixbufFormatFreeMethodInfo Source #
((~) * signature (m ()), MonadIO m) => MethodInfo * PixbufFormatFreeMethodInfo PixbufFormat signature Source # | |
:: (HasCallStack, MonadIO m) | |
=> PixbufFormat |
|
-> m () |
Frees the resources allocated when copying a PixbufFormat
using pixbufFormatCopy
Since: 2.22
getDescription
data PixbufFormatGetDescriptionMethodInfo Source #
((~) * signature (m Text), MonadIO m) => MethodInfo * PixbufFormatGetDescriptionMethodInfo PixbufFormat signature Source # | |
pixbufFormatGetDescription Source #
:: (HasCallStack, MonadIO m) | |
=> PixbufFormat |
|
-> m Text | Returns: a description of the format. |
Returns a description of the format.
Since: 2.2
getExtensions
data PixbufFormatGetExtensionsMethodInfo Source #
((~) * signature (m [Text]), MonadIO m) => MethodInfo * PixbufFormatGetExtensionsMethodInfo PixbufFormat signature Source # | |
pixbufFormatGetExtensions Source #
:: (HasCallStack, MonadIO m) | |
=> PixbufFormat |
|
-> m [Text] | Returns: a |
Returns the filename extensions typically used for files in the given format.
Since: 2.2
getLicense
data PixbufFormatGetLicenseMethodInfo Source #
((~) * signature (m Text), MonadIO m) => MethodInfo * PixbufFormatGetLicenseMethodInfo PixbufFormat signature Source # | |
pixbufFormatGetLicense Source #
:: (HasCallStack, MonadIO m) | |
=> PixbufFormat |
|
-> m Text | Returns: a string describing the license of |
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
data PixbufFormatGetMimeTypesMethodInfo Source #
((~) * signature (m [Text]), MonadIO m) => MethodInfo * PixbufFormatGetMimeTypesMethodInfo PixbufFormat signature Source # | |
pixbufFormatGetMimeTypes Source #
:: (HasCallStack, MonadIO m) | |
=> PixbufFormat |
|
-> m [Text] | Returns: a |
Returns the mime types supported by the format.
Since: 2.2
getName
data PixbufFormatGetNameMethodInfo Source #
((~) * signature (m Text), MonadIO m) => MethodInfo * PixbufFormatGetNameMethodInfo PixbufFormat signature Source # | |
:: (HasCallStack, MonadIO m) | |
=> PixbufFormat |
|
-> m Text | Returns: the name of the format. |
Returns the name of the format.
Since: 2.2
isDisabled
data PixbufFormatIsDisabledMethodInfo Source #
((~) * signature (m Bool), MonadIO m) => MethodInfo * PixbufFormatIsDisabledMethodInfo PixbufFormat signature Source # | |
pixbufFormatIsDisabled Source #
:: (HasCallStack, MonadIO m) | |
=> PixbufFormat |
|
-> m Bool | Returns: whether this image format is disabled. |
Returns whether this image format is disabled. See
pixbufFormatSetDisabled
.
Since: 2.6
isSaveOptionSupported
data PixbufFormatIsSaveOptionSupportedMethodInfo Source #
((~) * signature (Text -> m Bool), MonadIO m) => MethodInfo * PixbufFormatIsSaveOptionSupportedMethodInfo PixbufFormat signature Source # | |
pixbufFormatIsSaveOptionSupported Source #
:: (HasCallStack, MonadIO m) | |
=> PixbufFormat |
|
-> Text |
|
-> m Bool | Returns: |
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
data PixbufFormatIsScalableMethodInfo Source #
((~) * signature (m Bool), MonadIO m) => MethodInfo * PixbufFormatIsScalableMethodInfo PixbufFormat signature Source # | |
pixbufFormatIsScalable Source #
:: (HasCallStack, MonadIO m) | |
=> 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
data PixbufFormatIsWritableMethodInfo Source #
((~) * signature (m Bool), MonadIO m) => MethodInfo * PixbufFormatIsWritableMethodInfo PixbufFormat signature Source # | |
pixbufFormatIsWritable Source #
:: (HasCallStack, MonadIO m) | |
=> 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
data PixbufFormatSetDisabledMethodInfo Source #
((~) * signature (Bool -> m ()), MonadIO m) => MethodInfo * PixbufFormatSetDisabledMethodInfo PixbufFormat signature Source # | |
pixbufFormatSetDisabled Source #
:: (HasCallStack, MonadIO m) | |
=> PixbufFormat |
|
-> Bool |
|
-> 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