gi-gdkpixbuf-2.0.25: GdkPixbuf bindings
CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.GdkPixbuf.Structs.PixbufFormat

Description

No description available in the introspection data.

Synopsis

Exported types

newtype PixbufFormat Source #

Memory-managed wrapper type.

Constructors

PixbufFormat (ManagedPtr PixbufFormat) 

Instances

Instances details
Eq PixbufFormat Source # 
Instance details

Defined in GI.GdkPixbuf.Structs.PixbufFormat

GBoxed PixbufFormat Source # 
Instance details

Defined in GI.GdkPixbuf.Structs.PixbufFormat

ManagedPtrNewtype PixbufFormat Source # 
Instance details

Defined in GI.GdkPixbuf.Structs.PixbufFormat

Methods

toManagedPtr :: PixbufFormat -> ManagedPtr PixbufFormat

TypedObject PixbufFormat Source # 
Instance details

Defined in GI.GdkPixbuf.Structs.PixbufFormat

Methods

glibType :: IO GType

HasParentTypes PixbufFormat Source # 
Instance details

Defined in GI.GdkPixbuf.Structs.PixbufFormat

IsGValue (Maybe PixbufFormat) Source #

Convert PixbufFormat to and from GValue. See toGValue and fromGValue.

Instance details

Defined in GI.GdkPixbuf.Structs.PixbufFormat

Methods

gvalueGType_ :: IO GType

gvalueSet_ :: Ptr GValue -> Maybe PixbufFormat -> IO ()

gvalueGet_ :: Ptr GValue -> IO (Maybe PixbufFormat)

type ParentTypes PixbufFormat Source # 
Instance details

Defined in GI.GdkPixbuf.Structs.PixbufFormat

type ParentTypes PixbufFormat = '[] :: [Type]

Methods

Click to display all available methods, including inherited ones

Expand

Methods

copy, free, isDisabled, isSaveOptionSupported, isScalable, isWritable.

Getters

getDescription, getExtensions, getLicense, getMimeTypes, getName.

Setters

setDisabled.

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