-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/


-- | GdkPixbuf bindings
--   
--   Bindings for GdkPixbuf, autogenerated by haskell-gi.
@package gi-gdkpixbuf
@version 2.0.32


-- | Build time configuration used during code generation.
module GI.GdkPixbuf.Config

-- | Overrides used when generating these bindings.
overrides :: Text

-- | Modules in this package
modules :: [Text]


module GI.GdkPixbuf.Constants

-- | Contains the full version of GdkPixbuf as a string.
--   
--   This is the version being compiled against; contrast with
--   <tt>gdk_pixbuf_version</tt>.
pattern PIXBUF_VERSION :: Text

-- | Minor version of gdk-pixbuf library, that is the "8" in "0.8.2" for
--   example.
pattern PIXBUF_MINOR :: Int32

-- | Micro version of gdk-pixbuf library, that is the "2" in "0.8.2" for
--   example.
pattern PIXBUF_MICRO :: Int32

-- | Major version of gdk-pixbuf library, that is the "0" in "0.8.2" for
--   example.
pattern PIXBUF_MAJOR :: Int32


module GI.GdkPixbuf.Enums

-- | This enumeration defines the color spaces that are supported by the
--   gdk-pixbuf library.
--   
--   Currently only RGB is supported.
data Colorspace

-- | Indicates a red/green/blue additive color space.
ColorspaceRgb :: Colorspace

-- | Catch-all for unknown values
AnotherColorspace :: Int -> Colorspace

-- | Interpolation modes for scaling functions.
--   
--   The <tt>GDK_INTERP_NEAREST</tt> mode is the fastest scaling method,
--   but has horrible quality when scaling down;
--   <tt>GDK_INTERP_BILINEAR</tt> is the best choice if you aren't sure
--   what to choose, it has a good speed/quality balance.
--   
--   <b>Note</b>: Cubic filtering is missing from the list; hyperbolic
--   interpolation is just as fast and results in higher quality.
data InterpType

-- | Nearest neighbor sampling; this is the fastest and lowest quality
--   mode. Quality is normally unacceptable when scaling down, but may be
--   OK when scaling up.
InterpTypeNearest :: InterpType

-- | This is an accurate simulation of the PostScript image operator
--   without any interpolation enabled. Each pixel is rendered as a tiny
--   parallelogram of solid color, the edges of which are implemented with
--   antialiasing. It resembles nearest neighbor for enlargement, and
--   bilinear for reduction.
InterpTypeTiles :: InterpType

-- | Best quality/speed balance; use this mode by default. Bilinear
--   interpolation. For enlargement, it is equivalent to point-sampling the
--   ideal bilinear-interpolated image. For reduction, it is equivalent to
--   laying down small tiles and integrating over the coverage area.
InterpTypeBilinear :: InterpType

-- | This is the slowest and highest quality reconstruction function. It is
--   derived from the hyperbolic filters in Wolberg's "Digital Image
--   Warping", and is formally defined as the hyperbolic-filter sampling
--   the ideal hyperbolic-filter interpolated image (the filter is designed
--   to be idempotent for 1:1 pixel mapping). <b>Deprecated</b>: this
--   interpolation filter is deprecated, as in reality it has a lower
--   quality than the <i><tt>gDKINTERPBILINEAR</tt></i> filter (Since:
--   2.38)
InterpTypeHyper :: InterpType

-- | Catch-all for unknown values
AnotherInterpType :: Int -> InterpType

-- | Control the alpha channel for drawables.
--   
--   These values can be passed to
--   <tt><i>gdk_pixbuf_xlib_render_to_drawable_alpha()</i></tt> in
--   gdk-pixbuf-xlib to control how the alpha channel of an image should be
--   handled.
--   
--   This function can create a bilevel clipping mask (black and white) and
--   use it while painting the image.
--   
--   In the future, when the X Window System gets an alpha channel
--   extension, it will be possible to do full alpha compositing onto
--   arbitrary drawables. For now both cases fall back to a bilevel
--   clipping mask.

-- | <i>Deprecated: (Since version 2.42)There is no user of
--   GdkPixbufAlphaMode in GdkPixbuf,and the Xlib utility functions have
--   been split out to their ownlibrary, gdk-pixbuf-xlib</i>
data PixbufAlphaMode

-- | A bilevel clipping mask (black and white) will be created and used to
--   draw the image. Pixels below 0.5 opacity will be considered fully
--   transparent, and all others will be considered fully opaque.
PixbufAlphaModeBilevel :: PixbufAlphaMode

-- | For now falls back to <tt><i>GDK_PIXBUF_ALPHA_BILEVEL</i></tt>. In the
--   future it will do full alpha compositing.
PixbufAlphaModeFull :: PixbufAlphaMode

-- | Catch-all for unknown values
AnotherPixbufAlphaMode :: Int -> PixbufAlphaMode

-- | An error code in the <tt>GDK_PIXBUF_ERROR</tt> domain.
--   
--   Many gdk-pixbuf operations can cause errors in this domain, or in the
--   <tt>G_FILE_ERROR</tt> domain.
data PixbufError

-- | An image file was broken somehow.
PixbufErrorCorruptImage :: PixbufError

-- | Not enough memory.
PixbufErrorInsufficientMemory :: PixbufError

-- | A bad option was passed to a pixbuf save module.
PixbufErrorBadOption :: PixbufError

-- | Unknown image type.
PixbufErrorUnknownType :: PixbufError

-- | Don't know how to perform the given operation on the type of image at
--   hand.
PixbufErrorUnsupportedOperation :: PixbufError

-- | Generic failure code, something went wrong.
PixbufErrorFailed :: PixbufError

-- | Only part of the animation was loaded.
PixbufErrorIncompleteAnimation :: PixbufError

-- | Catch-all for unknown values
AnotherPixbufError :: Int -> PixbufError

-- | Catch exceptions of type <a>PixbufError</a>. This is a specialized
--   version of <a>catchGErrorJustDomain</a>.
catchPixbufError :: IO a -> (PixbufError -> GErrorMessage -> IO a) -> IO a

-- | Handle exceptions of type <a>PixbufError</a>. This is a specialized
--   version of <a>handleGErrorJustDomain</a>.
handlePixbufError :: (PixbufError -> GErrorMessage -> IO a) -> IO a -> IO a

-- | The possible rotations which can be passed to
--   <a>pixbufRotateSimple</a>.
--   
--   To make them easier to use, their numerical values are the actual
--   degrees.
data PixbufRotation

-- | No rotation.
PixbufRotationNone :: PixbufRotation

-- | Rotate by 90 degrees.
PixbufRotationCounterclockwise :: PixbufRotation

-- | Rotate by 180 degrees.
PixbufRotationUpsidedown :: PixbufRotation

-- | Rotate by 270 degrees.
PixbufRotationClockwise :: PixbufRotation

-- | Catch-all for unknown values
AnotherPixbufRotation :: Int -> PixbufRotation
instance Data.GI.Base.BasicTypes.BoxedEnum GI.GdkPixbuf.Enums.Colorspace
instance Data.GI.Base.BasicTypes.BoxedEnum GI.GdkPixbuf.Enums.InterpType
instance Data.GI.Base.BasicTypes.BoxedEnum GI.GdkPixbuf.Enums.PixbufAlphaMode
instance Data.GI.Base.BasicTypes.BoxedEnum GI.GdkPixbuf.Enums.PixbufError
instance Data.GI.Base.BasicTypes.BoxedEnum GI.GdkPixbuf.Enums.PixbufRotation
instance GHC.Internal.Enum.Enum GI.GdkPixbuf.Enums.Colorspace
instance GHC.Internal.Enum.Enum GI.GdkPixbuf.Enums.InterpType
instance GHC.Internal.Enum.Enum GI.GdkPixbuf.Enums.PixbufAlphaMode
instance GHC.Internal.Enum.Enum GI.GdkPixbuf.Enums.PixbufError
instance GHC.Internal.Enum.Enum GI.GdkPixbuf.Enums.PixbufRotation
instance GHC.Classes.Eq GI.GdkPixbuf.Enums.Colorspace
instance GHC.Classes.Eq GI.GdkPixbuf.Enums.InterpType
instance GHC.Classes.Eq GI.GdkPixbuf.Enums.PixbufAlphaMode
instance GHC.Classes.Eq GI.GdkPixbuf.Enums.PixbufError
instance GHC.Classes.Eq GI.GdkPixbuf.Enums.PixbufRotation
instance Data.GI.Base.GError.GErrorClass GI.GdkPixbuf.Enums.PixbufError
instance Data.GI.Base.Overloading.HasParentTypes GI.GdkPixbuf.Enums.Colorspace
instance Data.GI.Base.Overloading.HasParentTypes GI.GdkPixbuf.Enums.InterpType
instance Data.GI.Base.Overloading.HasParentTypes GI.GdkPixbuf.Enums.PixbufAlphaMode
instance Data.GI.Base.Overloading.HasParentTypes GI.GdkPixbuf.Enums.PixbufError
instance Data.GI.Base.Overloading.HasParentTypes GI.GdkPixbuf.Enums.PixbufRotation
instance GHC.Classes.Ord GI.GdkPixbuf.Enums.Colorspace
instance GHC.Classes.Ord GI.GdkPixbuf.Enums.InterpType
instance GHC.Classes.Ord GI.GdkPixbuf.Enums.PixbufAlphaMode
instance GHC.Classes.Ord GI.GdkPixbuf.Enums.PixbufError
instance GHC.Classes.Ord GI.GdkPixbuf.Enums.PixbufRotation
instance GHC.Internal.Show.Show GI.GdkPixbuf.Enums.Colorspace
instance GHC.Internal.Show.Show GI.GdkPixbuf.Enums.InterpType
instance GHC.Internal.Show.Show GI.GdkPixbuf.Enums.PixbufAlphaMode
instance GHC.Internal.Show.Show GI.GdkPixbuf.Enums.PixbufError
instance GHC.Internal.Show.Show GI.GdkPixbuf.Enums.PixbufRotation
instance Data.GI.Base.BasicTypes.TypedObject GI.GdkPixbuf.Enums.Colorspace
instance Data.GI.Base.BasicTypes.TypedObject GI.GdkPixbuf.Enums.InterpType
instance Data.GI.Base.BasicTypes.TypedObject GI.GdkPixbuf.Enums.PixbufAlphaMode
instance Data.GI.Base.BasicTypes.TypedObject GI.GdkPixbuf.Enums.PixbufError
instance Data.GI.Base.BasicTypes.TypedObject GI.GdkPixbuf.Enums.PixbufRotation


module GI.GdkPixbuf.Flags

-- | Flags which allow a module to specify further details about the
--   supported operations.
--   
--   <i>Since: 2.2</i>
data PixbufFormatFlags

-- | the module can write out images in the format.
PixbufFormatFlagsWritable :: PixbufFormatFlags

-- | the image format is scalable
PixbufFormatFlagsScalable :: PixbufFormatFlags

-- | the module is threadsafe. gdk-pixbuf ignores modules that are not
--   marked as threadsafe. (Since 2.28).
PixbufFormatFlagsThreadsafe :: PixbufFormatFlags

-- | Catch-all for unknown values
AnotherPixbufFormatFlags :: Int -> PixbufFormatFlags
instance GHC.Internal.Enum.Enum GI.GdkPixbuf.Flags.PixbufFormatFlags
instance GHC.Classes.Eq GI.GdkPixbuf.Flags.PixbufFormatFlags
instance Data.GI.Base.BasicTypes.IsGFlag GI.GdkPixbuf.Flags.PixbufFormatFlags
instance GHC.Classes.Ord GI.GdkPixbuf.Flags.PixbufFormatFlags
instance GHC.Internal.Show.Show GI.GdkPixbuf.Flags.PixbufFormatFlags


-- | The signature prefix for a module.
--   
--   The signature of a module is a set of prefixes. Prefixes are encoded
--   as pairs of ordinary strings, where the second string, called the
--   mask, if not <tt>NULL</tt>, must be of the same length as the first
--   one and may contain ' ', '!', 'x', 'z', and 'n' to indicate bytes that
--   must be matched, not matched, "don't-care"-bytes, zeros and non-zeros,
--   respectively.
--   
--   Each prefix has an associated integer that describes the relevance of
--   the prefix, with 0 meaning a mismatch and 100 a "perfect match".
--   
--   Starting with gdk-pixbuf 2.8, the first byte of the mask may be '*',
--   indicating an unanchored pattern that matches not only at the
--   beginning, but also in the middle. Versions prior to 2.8 will
--   interpret the '*' like an 'x'.
--   
--   The signature of a module is stored as an array of
--   <tt>GdkPixbufModulePatterns</tt>. The array is terminated by a pattern
--   where the <tt>prefix</tt> is <tt>NULL</tt>.
--   
--   <h3><i>c code</i></h3>
--   
--   <pre>
--   GdkPixbufModulePattern *signature[] = {
--     { "abcdx", " !x z", 100 },
--     { "bla", NULL,  90 },
--     { NULL, NULL, 0 }
--   };
--   </pre>
--   
--   In the example above, the signature matches e.g. "auud\0" with
--   relevance 100, and "blau" with relevance 90.
--   
--   <i>Since: 2.2</i>
module GI.GdkPixbuf.Structs.PixbufModulePattern

-- | Memory-managed wrapper type.
newtype PixbufModulePattern
PixbufModulePattern :: ManagedPtr PixbufModulePattern -> PixbufModulePattern

-- | Construct a <a>PixbufModulePattern</a> struct initialized to zero.
newZeroPixbufModulePattern :: MonadIO m => m PixbufModulePattern

-- | Set the value of the “<tt>mask</tt>” field to <a>Nothing</a>. When
--   <a>overloading</a> is enabled, this is equivalent to
--   
--   <pre>
--   <a>clear</a> #mask
--   </pre>
clearPixbufModulePatternMask :: MonadIO m => PixbufModulePattern -> m ()

-- | Get the value of the “<tt>mask</tt>” field. When <a>overloading</a> is
--   enabled, this is equivalent to
--   
--   <pre>
--   <a>get</a> pixbufModulePattern #mask
--   </pre>
getPixbufModulePatternMask :: MonadIO m => PixbufModulePattern -> m (Maybe Text)

-- | Set the value of the “<tt>mask</tt>” field. When <a>overloading</a> is
--   enabled, this is equivalent to
--   
--   <pre>
--   <a>set</a> pixbufModulePattern [ #mask <a>:=</a> value ]
--   </pre>
setPixbufModulePatternMask :: MonadIO m => PixbufModulePattern -> CString -> m ()

-- | Set the value of the “<tt>prefix</tt>” field to <a>Nothing</a>. When
--   <a>overloading</a> is enabled, this is equivalent to
--   
--   <pre>
--   <a>clear</a> #prefix
--   </pre>
clearPixbufModulePatternPrefix :: MonadIO m => PixbufModulePattern -> m ()

-- | Get the value of the “<tt>prefix</tt>” field. When <a>overloading</a>
--   is enabled, this is equivalent to
--   
--   <pre>
--   <a>get</a> pixbufModulePattern #prefix
--   </pre>
getPixbufModulePatternPrefix :: MonadIO m => PixbufModulePattern -> m (Maybe Text)

-- | Set the value of the “<tt>prefix</tt>” field. When <a>overloading</a>
--   is enabled, this is equivalent to
--   
--   <pre>
--   <a>set</a> pixbufModulePattern [ #prefix <a>:=</a> value ]
--   </pre>
setPixbufModulePatternPrefix :: MonadIO m => PixbufModulePattern -> CString -> m ()

-- | Get the value of the “<tt>relevance</tt>” field. When
--   <a>overloading</a> is enabled, this is equivalent to
--   
--   <pre>
--   <a>get</a> pixbufModulePattern #relevance
--   </pre>
getPixbufModulePatternRelevance :: MonadIO m => PixbufModulePattern -> m Int32

-- | Set the value of the “<tt>relevance</tt>” field. When
--   <a>overloading</a> is enabled, this is equivalent to
--   
--   <pre>
--   <a>set</a> pixbufModulePattern [ #relevance <a>:=</a> value ]
--   </pre>
setPixbufModulePatternRelevance :: MonadIO m => PixbufModulePattern -> Int32 -> m ()
instance Data.GI.Base.BasicTypes.BoxedPtr GI.GdkPixbuf.Structs.PixbufModulePattern.PixbufModulePattern
instance Data.GI.Base.BasicTypes.CallocPtr GI.GdkPixbuf.Structs.PixbufModulePattern.PixbufModulePattern
instance (tag GHC.Types.~ 'Data.GI.Base.Attributes.AttrSet) => Data.GI.Base.Constructible.Constructible GI.GdkPixbuf.Structs.PixbufModulePattern.PixbufModulePattern tag
instance GHC.Classes.Eq GI.GdkPixbuf.Structs.PixbufModulePattern.PixbufModulePattern
instance Data.GI.Base.BasicTypes.ManagedPtrNewtype GI.GdkPixbuf.Structs.PixbufModulePattern.PixbufModulePattern


-- | A <tt>GdkPixbufFormat</tt> contains information about the image format
--   accepted by a module.
--   
--   Only modules should access the fields directly, applications should
--   use the <tt>gdk_pixbuf_format_*</tt> family of functions.
--   
--   <i>Since: 2.2</i>
module GI.GdkPixbuf.Structs.PixbufFormat

-- | Memory-managed wrapper type.
newtype PixbufFormat
PixbufFormat :: ManagedPtr PixbufFormat -> PixbufFormat

-- | Construct a <a>PixbufFormat</a> struct initialized to zero.
newZeroPixbufFormat :: MonadIO m => m PixbufFormat

-- | Creates a copy of <tt>format</tt>.
--   
--   <i>Since: 2.22</i>
pixbufFormatCopy :: (HasCallStack, MonadIO m) => PixbufFormat -> m (Maybe PixbufFormat)

-- | Frees the resources allocated when copying a <tt>GdkPixbufFormat</tt>
--   using <a>pixbufFormatCopy</a>
--   
--   <i>Since: 2.22</i>
pixbufFormatFree :: (HasCallStack, MonadIO m) => PixbufFormat -> m ()

-- | Returns a description of the format.
--   
--   <i>Since: 2.2</i>
pixbufFormatGetDescription :: (HasCallStack, MonadIO m) => PixbufFormat -> m (Maybe Text)

-- | Returns the filename extensions typically used for files in the given
--   format.
--   
--   <i>Since: 2.2</i>
pixbufFormatGetExtensions :: (HasCallStack, MonadIO m) => PixbufFormat -> m (Maybe [Text])

-- | Returns 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.
--   
--   <i>Since: 2.6</i>
pixbufFormatGetLicense :: (HasCallStack, MonadIO m) => PixbufFormat -> m (Maybe Text)

-- | Returns the mime types supported by the format.
--   
--   <i>Since: 2.2</i>
pixbufFormatGetMimeTypes :: (HasCallStack, MonadIO m) => PixbufFormat -> m (Maybe [Text])

-- | Returns the name of the format.
--   
--   <i>Since: 2.2</i>
pixbufFormatGetName :: (HasCallStack, MonadIO m) => PixbufFormat -> m (Maybe Text)

-- | Returns whether this image format is disabled.
--   
--   See <a>pixbufFormatSetDisabled</a>.
--   
--   <i>Since: 2.6</i>
pixbufFormatIsDisabled :: (HasCallStack, MonadIO m) => PixbufFormat -> m Bool

-- | Returns <tt>TRUE</tt> if the save option specified by
--   <i><tt>optionKey</tt></i> is supported when saving a pixbuf using the
--   module implementing <i><tt>format</tt></i>.
--   
--   See <tt><i>gdk_pixbuf_save()</i></tt> for more information about
--   option keys.
--   
--   <i>Since: 2.36</i>
pixbufFormatIsSaveOptionSupported :: (HasCallStack, MonadIO m) => PixbufFormat -> Text -> m Bool

-- | 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.
--   
--   <i>Since: 2.6</i>
pixbufFormatIsScalable :: (HasCallStack, MonadIO m) => PixbufFormat -> m Bool

-- | Returns whether pixbufs can be saved in the given format.
--   
--   <i>Since: 2.2</i>
pixbufFormatIsWritable :: (HasCallStack, MonadIO m) => PixbufFormat -> m Bool

-- | 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 <a>pixbufFormatGetLicense</a>.
--   
--   <i>Since: 2.6</i>
pixbufFormatSetDisabled :: (HasCallStack, MonadIO m) => PixbufFormat -> Bool -> m ()

-- | Set the value of the “<tt>description</tt>” field to <a>Nothing</a>.
--   When <a>overloading</a> is enabled, this is equivalent to
--   
--   <pre>
--   <a>clear</a> #description
--   </pre>
clearPixbufFormatDescription :: MonadIO m => PixbufFormat -> m ()

-- | Get the value of the “<tt>description</tt>” field. When
--   <a>overloading</a> is enabled, this is equivalent to
--   
--   <pre>
--   <a>get</a> pixbufFormat #description
--   </pre>
getPixbufFormatDescription :: MonadIO m => PixbufFormat -> m (Maybe Text)

-- | Set the value of the “<tt>description</tt>” field. When
--   <a>overloading</a> is enabled, this is equivalent to
--   
--   <pre>
--   <a>set</a> pixbufFormat [ #description <a>:=</a> value ]
--   </pre>
setPixbufFormatDescription :: MonadIO m => PixbufFormat -> CString -> m ()

-- | Get the value of the “<tt>disabled</tt>” field. When
--   <a>overloading</a> is enabled, this is equivalent to
--   
--   <pre>
--   <a>get</a> pixbufFormat #disabled
--   </pre>
getPixbufFormatDisabled :: MonadIO m => PixbufFormat -> m Bool

-- | Set the value of the “<tt>disabled</tt>” field. When
--   <a>overloading</a> is enabled, this is equivalent to
--   
--   <pre>
--   <a>set</a> pixbufFormat [ #disabled <a>:=</a> value ]
--   </pre>
setPixbufFormatDisabled :: MonadIO m => PixbufFormat -> Bool -> m ()

-- | Set the value of the “<tt>domain</tt>” field to <a>Nothing</a>. When
--   <a>overloading</a> is enabled, this is equivalent to
--   
--   <pre>
--   <a>clear</a> #domain
--   </pre>
clearPixbufFormatDomain :: MonadIO m => PixbufFormat -> m ()

-- | Get the value of the “<tt>domain</tt>” field. When <a>overloading</a>
--   is enabled, this is equivalent to
--   
--   <pre>
--   <a>get</a> pixbufFormat #domain
--   </pre>
getPixbufFormatDomain :: MonadIO m => PixbufFormat -> m (Maybe Text)

-- | Set the value of the “<tt>domain</tt>” field. When <a>overloading</a>
--   is enabled, this is equivalent to
--   
--   <pre>
--   <a>set</a> pixbufFormat [ #domain <a>:=</a> value ]
--   </pre>
setPixbufFormatDomain :: MonadIO m => PixbufFormat -> CString -> m ()

-- | Set the value of the “<tt>extensions</tt>” field to <a>Nothing</a>.
--   When <a>overloading</a> is enabled, this is equivalent to
--   
--   <pre>
--   <a>clear</a> #extensions
--   </pre>
clearPixbufFormatExtensions :: MonadIO m => PixbufFormat -> m ()

-- | Get the value of the “<tt>extensions</tt>” field. When
--   <a>overloading</a> is enabled, this is equivalent to
--   
--   <pre>
--   <a>get</a> pixbufFormat #extensions
--   </pre>
getPixbufFormatExtensions :: MonadIO m => PixbufFormat -> m (Maybe [Text])

-- | Set the value of the “<tt>extensions</tt>” field. When
--   <a>overloading</a> is enabled, this is equivalent to
--   
--   <pre>
--   <a>set</a> pixbufFormat [ #extensions <a>:=</a> value ]
--   </pre>
setPixbufFormatExtensions :: MonadIO m => PixbufFormat -> Ptr CString -> m ()

-- | Get the value of the “<tt>flags</tt>” field. When <a>overloading</a>
--   is enabled, this is equivalent to
--   
--   <pre>
--   <a>get</a> pixbufFormat #flags
--   </pre>
getPixbufFormatFlags :: MonadIO m => PixbufFormat -> m Word32

-- | Set the value of the “<tt>flags</tt>” field. When <a>overloading</a>
--   is enabled, this is equivalent to
--   
--   <pre>
--   <a>set</a> pixbufFormat [ #flags <a>:=</a> value ]
--   </pre>
setPixbufFormatFlags :: MonadIO m => PixbufFormat -> Word32 -> m ()

-- | Set the value of the “<tt>license</tt>” field to <a>Nothing</a>. When
--   <a>overloading</a> is enabled, this is equivalent to
--   
--   <pre>
--   <a>clear</a> #license
--   </pre>
clearPixbufFormatLicense :: MonadIO m => PixbufFormat -> m ()

-- | Get the value of the “<tt>license</tt>” field. When <a>overloading</a>
--   is enabled, this is equivalent to
--   
--   <pre>
--   <a>get</a> pixbufFormat #license
--   </pre>
getPixbufFormatLicense :: MonadIO m => PixbufFormat -> m (Maybe Text)

-- | Set the value of the “<tt>license</tt>” field. When <a>overloading</a>
--   is enabled, this is equivalent to
--   
--   <pre>
--   <a>set</a> pixbufFormat [ #license <a>:=</a> value ]
--   </pre>
setPixbufFormatLicense :: MonadIO m => PixbufFormat -> CString -> m ()

-- | Set the value of the “<tt>mime_types</tt>” field to <a>Nothing</a>.
--   When <a>overloading</a> is enabled, this is equivalent to
--   
--   <pre>
--   <a>clear</a> #mimeTypes
--   </pre>
clearPixbufFormatMimeTypes :: MonadIO m => PixbufFormat -> m ()

-- | Get the value of the “<tt>mime_types</tt>” field. When
--   <a>overloading</a> is enabled, this is equivalent to
--   
--   <pre>
--   <a>get</a> pixbufFormat #mimeTypes
--   </pre>
getPixbufFormatMimeTypes :: MonadIO m => PixbufFormat -> m (Maybe [Text])

-- | Set the value of the “<tt>mime_types</tt>” field. When
--   <a>overloading</a> is enabled, this is equivalent to
--   
--   <pre>
--   <a>set</a> pixbufFormat [ #mimeTypes <a>:=</a> value ]
--   </pre>
setPixbufFormatMimeTypes :: MonadIO m => PixbufFormat -> Ptr CString -> m ()

-- | Set the value of the “<tt>name</tt>” field to <a>Nothing</a>. When
--   <a>overloading</a> is enabled, this is equivalent to
--   
--   <pre>
--   <a>clear</a> #name
--   </pre>
clearPixbufFormatName :: MonadIO m => PixbufFormat -> m ()

-- | Get the value of the “<tt>name</tt>” field. When <a>overloading</a> is
--   enabled, this is equivalent to
--   
--   <pre>
--   <a>get</a> pixbufFormat #name
--   </pre>
getPixbufFormatName :: MonadIO m => PixbufFormat -> m (Maybe Text)

-- | Set the value of the “<tt>name</tt>” field. When <a>overloading</a> is
--   enabled, this is equivalent to
--   
--   <pre>
--   <a>set</a> pixbufFormat [ #name <a>:=</a> value ]
--   </pre>
setPixbufFormatName :: MonadIO m => PixbufFormat -> CString -> m ()

-- | Set the value of the “<tt>signature</tt>” field to <a>Nothing</a>.
--   When <a>overloading</a> is enabled, this is equivalent to
--   
--   <pre>
--   <a>clear</a> #signature
--   </pre>
clearPixbufFormatSignature :: MonadIO m => PixbufFormat -> m ()

-- | Get the value of the “<tt>signature</tt>” field. When
--   <a>overloading</a> is enabled, this is equivalent to
--   
--   <pre>
--   <a>get</a> pixbufFormat #signature
--   </pre>
getPixbufFormatSignature :: MonadIO m => PixbufFormat -> m (Maybe PixbufModulePattern)

-- | Set the value of the “<tt>signature</tt>” field. When
--   <a>overloading</a> is enabled, this is equivalent to
--   
--   <pre>
--   <a>set</a> pixbufFormat [ #signature <a>:=</a> value ]
--   </pre>
setPixbufFormatSignature :: MonadIO m => PixbufFormat -> Ptr PixbufModulePattern -> m ()
instance (tag GHC.Types.~ 'Data.GI.Base.Attributes.AttrSet) => Data.GI.Base.Constructible.Constructible GI.GdkPixbuf.Structs.PixbufFormat.PixbufFormat tag
instance GHC.Classes.Eq GI.GdkPixbuf.Structs.PixbufFormat.PixbufFormat
instance Data.GI.Base.BasicTypes.GBoxed GI.GdkPixbuf.Structs.PixbufFormat.PixbufFormat
instance Data.GI.Base.Overloading.HasParentTypes GI.GdkPixbuf.Structs.PixbufFormat.PixbufFormat
instance Data.GI.Base.GValue.IsGValue (GHC.Internal.Maybe.Maybe GI.GdkPixbuf.Structs.PixbufFormat.PixbufFormat)
instance Data.GI.Base.BasicTypes.ManagedPtrNewtype GI.GdkPixbuf.Structs.PixbufFormat.PixbufFormat
instance Data.GI.Base.BasicTypes.TypedObject GI.GdkPixbuf.Structs.PixbufFormat.PixbufFormat


module GI.GdkPixbuf.Callbacks

-- | Type for the callback on the (unwrapped) C side.
type C_PixbufDestroyNotify = Ptr Word8 -> Ptr () -> IO ()

-- | A function of this type is responsible for freeing the pixel array of
--   a pixbuf.
--   
--   The <a>pixbufNewFromData</a> function lets you pass in a pre-allocated
--   pixel array so that a pixbuf can be created from it; in this case you
--   will need to pass in a function of type
--   <tt>GdkPixbufDestroyNotify</tt> so that the pixel data can be freed
--   when the pixbuf is finalized.
type PixbufDestroyNotify = Ptr Word8 -> IO ()

-- | A function of this type is responsible for freeing the pixel array of
--   a pixbuf.
--   
--   The <a>pixbufNewFromData</a> function lets you pass in a pre-allocated
--   pixel array so that a pixbuf can be created from it; in this case you
--   will need to pass in a function of type
--   <tt>GdkPixbufDestroyNotify</tt> so that the pixel data can be freed
--   when the pixbuf is finalized.
type PixbufDestroyNotify_WithClosures = Ptr Word8 -> Ptr () -> IO ()

-- | A simple wrapper that ignores the closure arguments.
drop_closures_PixbufDestroyNotify :: PixbufDestroyNotify -> PixbufDestroyNotify_WithClosures

-- | Given a pointer to a foreign C function, wrap it into a function
--   callable from Haskell.
dynamic_PixbufDestroyNotify :: (HasCallStack, MonadIO m) => FunPtr C_PixbufDestroyNotify -> Ptr Word8 -> Ptr () -> m ()

-- | Wrap the callback into a <a>GClosure</a>.
genClosure_PixbufDestroyNotify :: MonadIO m => PixbufDestroyNotify -> m (GClosure C_PixbufDestroyNotify)

-- | Generate a function pointer callable from C code, from a
--   <a>C_PixbufDestroyNotify</a>.
mk_PixbufDestroyNotify :: C_PixbufDestroyNotify -> IO (FunPtr C_PixbufDestroyNotify)

-- | A convenience synonym for <tt><a>Nothing</a> :: <a>Maybe</a>
--   <a>PixbufDestroyNotify</a></tt>.
noPixbufDestroyNotify :: Maybe PixbufDestroyNotify

-- | A convenience synonym for <tt><a>Nothing</a> :: <a>Maybe</a>
--   <a>PixbufDestroyNotify_WithClosures</a></tt>.
noPixbufDestroyNotify_WithClosures :: Maybe PixbufDestroyNotify_WithClosures

-- | Wrap a <a>PixbufDestroyNotify</a> into a <a>C_PixbufDestroyNotify</a>.
wrap_PixbufDestroyNotify :: Maybe (Ptr (FunPtr C_PixbufDestroyNotify)) -> PixbufDestroyNotify_WithClosures -> C_PixbufDestroyNotify

-- | Type for the callback on the (unwrapped) C side.
type C_PixbufModuleFillInfoFunc = Ptr PixbufFormat -> IO ()

-- | Defines the type of the function used to fill a <a>PixbufFormat</a>
--   structure with information about a module.
--   
--   <i>Since: 2.2</i>
type PixbufModuleFillInfoFunc = PixbufFormat -> IO ()

-- | Given a pointer to a foreign C function, wrap it into a function
--   callable from Haskell.
dynamic_PixbufModuleFillInfoFunc :: (HasCallStack, MonadIO m) => FunPtr C_PixbufModuleFillInfoFunc -> PixbufFormat -> m ()

-- | Wrap the callback into a <a>GClosure</a>.
genClosure_PixbufModuleFillInfoFunc :: MonadIO m => PixbufModuleFillInfoFunc -> m (GClosure C_PixbufModuleFillInfoFunc)

-- | Generate a function pointer callable from C code, from a
--   <a>C_PixbufModuleFillInfoFunc</a>.
mk_PixbufModuleFillInfoFunc :: C_PixbufModuleFillInfoFunc -> IO (FunPtr C_PixbufModuleFillInfoFunc)

-- | A convenience synonym for <tt><a>Nothing</a> :: <a>Maybe</a>
--   <a>PixbufModuleFillInfoFunc</a></tt>.
noPixbufModuleFillInfoFunc :: Maybe PixbufModuleFillInfoFunc

-- | Wrap a <a>PixbufModuleFillInfoFunc</a> into a
--   <a>C_PixbufModuleFillInfoFunc</a>.
wrap_PixbufModuleFillInfoFunc :: Maybe (Ptr (FunPtr C_PixbufModuleFillInfoFunc)) -> PixbufModuleFillInfoFunc -> C_PixbufModuleFillInfoFunc

-- | Type for the callback on the (unwrapped) C side.
type C_PixbufModuleFillVtableFunc = Ptr PixbufModule -> IO ()

-- | Defines the type of the function used to set the vtable of a
--   <a>PixbufModule</a> when it is loaded.
--   
--   <i>Since: 2.2</i>
type PixbufModuleFillVtableFunc = PixbufModule -> IO ()

-- | Given a pointer to a foreign C function, wrap it into a function
--   callable from Haskell.
dynamic_PixbufModuleFillVtableFunc :: (HasCallStack, MonadIO m) => FunPtr C_PixbufModuleFillVtableFunc -> PixbufModule -> m ()

-- | Wrap the callback into a <a>GClosure</a>.
genClosure_PixbufModuleFillVtableFunc :: MonadIO m => PixbufModuleFillVtableFunc -> m (GClosure C_PixbufModuleFillVtableFunc)

-- | Generate a function pointer callable from C code, from a
--   <a>C_PixbufModuleFillVtableFunc</a>.
mk_PixbufModuleFillVtableFunc :: C_PixbufModuleFillVtableFunc -> IO (FunPtr C_PixbufModuleFillVtableFunc)

-- | A convenience synonym for <tt><a>Nothing</a> :: <a>Maybe</a>
--   <a>PixbufModuleFillVtableFunc</a></tt>.
noPixbufModuleFillVtableFunc :: Maybe PixbufModuleFillVtableFunc

-- | Wrap a <a>PixbufModuleFillVtableFunc</a> into a
--   <a>C_PixbufModuleFillVtableFunc</a>.
wrap_PixbufModuleFillVtableFunc :: Maybe (Ptr (FunPtr C_PixbufModuleFillVtableFunc)) -> PixbufModuleFillVtableFunc -> C_PixbufModuleFillVtableFunc

-- | Type for the callback on the (unwrapped) C side.
type C_PixbufModuleIncrementLoadFunc = Ptr () -> Ptr Word8 -> Word32 -> Ptr Ptr GError -> IO CInt

-- | Incrementally loads a buffer into the image data.
type PixbufModuleIncrementLoadFunc = Ptr () -> ByteString -> IO ()

-- | Given a pointer to a foreign C function, wrap it into a function
--   callable from Haskell.
dynamic_PixbufModuleIncrementLoadFunc :: (HasCallStack, MonadIO m) => FunPtr C_PixbufModuleIncrementLoadFunc -> Ptr () -> ByteString -> m ()

-- | Generate a function pointer callable from C code, from a
--   <a>C_PixbufModuleIncrementLoadFunc</a>.
mk_PixbufModuleIncrementLoadFunc :: C_PixbufModuleIncrementLoadFunc -> IO (FunPtr C_PixbufModuleIncrementLoadFunc)

-- | A convenience synonym for <tt><a>Nothing</a> :: <a>Maybe</a>
--   <a>PixbufModuleIncrementLoadFunc</a></tt>.
noPixbufModuleIncrementLoadFunc :: Maybe PixbufModuleIncrementLoadFunc

-- | Type for the callback on the (unwrapped) C side.
type C_PixbufModuleLoadAnimationFunc = Ptr () -> Ptr Ptr GError -> IO Ptr PixbufAnimation

-- | Loads a file from a standard C file stream into a new
--   <tt>GdkPixbufAnimation</tt>.
--   
--   In case of error, this function should return <tt>NULL</tt> and set
--   the <tt>error</tt> argument.
type PixbufModuleLoadAnimationFunc = Ptr () -> IO PixbufAnimation

-- | Given a pointer to a foreign C function, wrap it into a function
--   callable from Haskell.
dynamic_PixbufModuleLoadAnimationFunc :: (HasCallStack, MonadIO m) => FunPtr C_PixbufModuleLoadAnimationFunc -> Ptr () -> m PixbufAnimation

-- | Generate a function pointer callable from C code, from a
--   <a>C_PixbufModuleLoadAnimationFunc</a>.
mk_PixbufModuleLoadAnimationFunc :: C_PixbufModuleLoadAnimationFunc -> IO (FunPtr C_PixbufModuleLoadAnimationFunc)

-- | A convenience synonym for <tt><a>Nothing</a> :: <a>Maybe</a>
--   <a>PixbufModuleLoadAnimationFunc</a></tt>.
noPixbufModuleLoadAnimationFunc :: Maybe PixbufModuleLoadAnimationFunc

-- | Type for the callback on the (unwrapped) C side.
type C_PixbufModuleLoadFunc = Ptr () -> Ptr Ptr GError -> IO Ptr Pixbuf

-- | Loads a file from a standard C file stream into a new
--   <tt>GdkPixbuf</tt>.
--   
--   In case of error, this function should return <tt>NULL</tt> and set
--   the <tt>error</tt> argument.
type PixbufModuleLoadFunc = Ptr () -> IO Pixbuf

-- | Given a pointer to a foreign C function, wrap it into a function
--   callable from Haskell.
dynamic_PixbufModuleLoadFunc :: (HasCallStack, MonadIO m) => FunPtr C_PixbufModuleLoadFunc -> Ptr () -> m Pixbuf

-- | Generate a function pointer callable from C code, from a
--   <a>C_PixbufModuleLoadFunc</a>.
mk_PixbufModuleLoadFunc :: C_PixbufModuleLoadFunc -> IO (FunPtr C_PixbufModuleLoadFunc)

-- | A convenience synonym for <tt><a>Nothing</a> :: <a>Maybe</a>
--   <a>PixbufModuleLoadFunc</a></tt>.
noPixbufModuleLoadFunc :: Maybe PixbufModuleLoadFunc

-- | Type for the callback on the (unwrapped) C side.
type C_PixbufModuleLoadXpmDataFunc = Ptr CString -> IO Ptr Pixbuf

-- | Loads XPM data into a new <tt>GdkPixbuf</tt>.
type PixbufModuleLoadXpmDataFunc = [Text] -> IO Pixbuf

-- | Given a pointer to a foreign C function, wrap it into a function
--   callable from Haskell.
dynamic_PixbufModuleLoadXpmDataFunc :: (HasCallStack, MonadIO m) => FunPtr C_PixbufModuleLoadXpmDataFunc -> [Text] -> m Pixbuf

-- | Wrap the callback into a <a>GClosure</a>.
genClosure_PixbufModuleLoadXpmDataFunc :: MonadIO m => PixbufModuleLoadXpmDataFunc -> m (GClosure C_PixbufModuleLoadXpmDataFunc)

-- | Generate a function pointer callable from C code, from a
--   <a>C_PixbufModuleLoadXpmDataFunc</a>.
mk_PixbufModuleLoadXpmDataFunc :: C_PixbufModuleLoadXpmDataFunc -> IO (FunPtr C_PixbufModuleLoadXpmDataFunc)

-- | A convenience synonym for <tt><a>Nothing</a> :: <a>Maybe</a>
--   <a>PixbufModuleLoadXpmDataFunc</a></tt>.
noPixbufModuleLoadXpmDataFunc :: Maybe PixbufModuleLoadXpmDataFunc

-- | Wrap a <a>PixbufModuleLoadXpmDataFunc</a> into a
--   <a>C_PixbufModuleLoadXpmDataFunc</a>.
wrap_PixbufModuleLoadXpmDataFunc :: Maybe (Ptr (FunPtr C_PixbufModuleLoadXpmDataFunc)) -> PixbufModuleLoadXpmDataFunc -> C_PixbufModuleLoadXpmDataFunc

-- | Type for the callback on the (unwrapped) C side.
type C_PixbufModulePreparedFunc = Ptr Pixbuf -> Ptr PixbufAnimation -> Ptr () -> IO ()

-- | Defines the type of the function that gets called once the initial
--   setup of <i><tt>pixbuf</tt></i> is done.
--   
--   <a>PixbufLoader</a> uses a function of this type to emit the "&lt;link
--   linkend="GdkPixbufLoader-area-prepared"&gt;area_prepared&lt;/link&gt;"
--   signal.
--   
--   <i>Since: 2.2</i>
type PixbufModulePreparedFunc = Pixbuf -> PixbufAnimation -> IO ()

-- | Defines the type of the function that gets called once the initial
--   setup of <i><tt>pixbuf</tt></i> is done.
--   
--   <a>PixbufLoader</a> uses a function of this type to emit the "&lt;link
--   linkend="GdkPixbufLoader-area-prepared"&gt;area_prepared&lt;/link&gt;"
--   signal.
--   
--   <i>Since: 2.2</i>
type PixbufModulePreparedFunc_WithClosures = Pixbuf -> PixbufAnimation -> Ptr () -> IO ()

-- | A simple wrapper that ignores the closure arguments.
drop_closures_PixbufModulePreparedFunc :: PixbufModulePreparedFunc -> PixbufModulePreparedFunc_WithClosures

-- | Given a pointer to a foreign C function, wrap it into a function
--   callable from Haskell.
dynamic_PixbufModulePreparedFunc :: (HasCallStack, MonadIO m, IsPixbuf a, IsPixbufAnimation b) => FunPtr C_PixbufModulePreparedFunc -> a -> b -> Ptr () -> m ()

-- | Wrap the callback into a <a>GClosure</a>.
genClosure_PixbufModulePreparedFunc :: MonadIO m => PixbufModulePreparedFunc -> m (GClosure C_PixbufModulePreparedFunc)

-- | Generate a function pointer callable from C code, from a
--   <a>C_PixbufModulePreparedFunc</a>.
mk_PixbufModulePreparedFunc :: C_PixbufModulePreparedFunc -> IO (FunPtr C_PixbufModulePreparedFunc)

-- | A convenience synonym for <tt><a>Nothing</a> :: <a>Maybe</a>
--   <a>PixbufModulePreparedFunc</a></tt>.
noPixbufModulePreparedFunc :: Maybe PixbufModulePreparedFunc

-- | A convenience synonym for <tt><a>Nothing</a> :: <a>Maybe</a>
--   <a>PixbufModulePreparedFunc_WithClosures</a></tt>.
noPixbufModulePreparedFunc_WithClosures :: Maybe PixbufModulePreparedFunc_WithClosures

-- | Wrap a <a>PixbufModulePreparedFunc</a> into a
--   <a>C_PixbufModulePreparedFunc</a>.
wrap_PixbufModulePreparedFunc :: Maybe (Ptr (FunPtr C_PixbufModulePreparedFunc)) -> PixbufModulePreparedFunc_WithClosures -> C_PixbufModulePreparedFunc

-- | Type for the callback on the (unwrapped) C side.
type C_PixbufModuleSaveFunc = Ptr () -> Ptr Pixbuf -> Ptr CString -> Ptr CString -> Ptr Ptr GError -> IO CInt

-- | Saves a <tt>GdkPixbuf</tt> into a standard C file stream.
--   
--   The optional <tt>param_keys</tt> and <tt>param_values</tt> arrays
--   contain the keys and values (in the same order) for attributes to be
--   saved alongside the image data.
type PixbufModuleSaveFunc = Ptr () -> Pixbuf -> Maybe [Text] -> Maybe [Text] -> IO ()

-- | Given a pointer to a foreign C function, wrap it into a function
--   callable from Haskell.
dynamic_PixbufModuleSaveFunc :: (HasCallStack, MonadIO m, IsPixbuf a) => FunPtr C_PixbufModuleSaveFunc -> Ptr () -> a -> Maybe [Text] -> Maybe [Text] -> m ()

-- | Generate a function pointer callable from C code, from a
--   <a>C_PixbufModuleSaveFunc</a>.
mk_PixbufModuleSaveFunc :: C_PixbufModuleSaveFunc -> IO (FunPtr C_PixbufModuleSaveFunc)

-- | A convenience synonym for <tt><a>Nothing</a> :: <a>Maybe</a>
--   <a>PixbufModuleSaveFunc</a></tt>.
noPixbufModuleSaveFunc :: Maybe PixbufModuleSaveFunc

-- | Type for the callback on the (unwrapped) C side.
type C_PixbufModuleSaveOptionSupportedFunc = CString -> IO CInt

-- | Checks whether the given <tt>option_key</tt> is supported when saving.
type PixbufModuleSaveOptionSupportedFunc = Text -> IO Bool

-- | Given a pointer to a foreign C function, wrap it into a function
--   callable from Haskell.
dynamic_PixbufModuleSaveOptionSupportedFunc :: (HasCallStack, MonadIO m) => FunPtr C_PixbufModuleSaveOptionSupportedFunc -> Text -> m Bool

-- | Wrap the callback into a <a>GClosure</a>.
genClosure_PixbufModuleSaveOptionSupportedFunc :: MonadIO m => PixbufModuleSaveOptionSupportedFunc -> m (GClosure C_PixbufModuleSaveOptionSupportedFunc)

-- | Generate a function pointer callable from C code, from a
--   <a>C_PixbufModuleSaveOptionSupportedFunc</a>.
mk_PixbufModuleSaveOptionSupportedFunc :: C_PixbufModuleSaveOptionSupportedFunc -> IO (FunPtr C_PixbufModuleSaveOptionSupportedFunc)

-- | A convenience synonym for <tt><a>Nothing</a> :: <a>Maybe</a>
--   <a>PixbufModuleSaveOptionSupportedFunc</a></tt>.
noPixbufModuleSaveOptionSupportedFunc :: Maybe PixbufModuleSaveOptionSupportedFunc

-- | Wrap a <a>PixbufModuleSaveOptionSupportedFunc</a> into a
--   <a>C_PixbufModuleSaveOptionSupportedFunc</a>.
wrap_PixbufModuleSaveOptionSupportedFunc :: Maybe (Ptr (FunPtr C_PixbufModuleSaveOptionSupportedFunc)) -> PixbufModuleSaveOptionSupportedFunc -> C_PixbufModuleSaveOptionSupportedFunc

-- | Type for the callback on the (unwrapped) C side.
type C_PixbufModuleSizeFunc = Int32 -> Int32 -> Ptr () -> IO ()

-- | Defines the type of the function that gets called once the size of the
--   loaded image is known.
--   
--   The function is expected to set <i><tt>width</tt></i> and
--   <i><tt>height</tt></i> to the desired size to which the image should
--   be scaled. If a module has no efficient way to achieve the desired
--   scaling during the loading of the image, it may either ignore the size
--   request, or only approximate it - gdk-pixbuf will then perform the
--   required scaling on the completely loaded image.
--   
--   If the function sets <i><tt>width</tt></i> or <i><tt>height</tt></i>
--   to zero, the module should interpret this as a hint that it will be
--   closed soon and shouldn't allocate further resources. This convention
--   is used to implement <a>pixbufGetFileInfo</a> efficiently.
--   
--   <i>Since: 2.2</i>
type PixbufModuleSizeFunc = Int32 -> Int32 -> IO ()

-- | Defines the type of the function that gets called once the size of the
--   loaded image is known.
--   
--   The function is expected to set <i><tt>width</tt></i> and
--   <i><tt>height</tt></i> to the desired size to which the image should
--   be scaled. If a module has no efficient way to achieve the desired
--   scaling during the loading of the image, it may either ignore the size
--   request, or only approximate it - gdk-pixbuf will then perform the
--   required scaling on the completely loaded image.
--   
--   If the function sets <i><tt>width</tt></i> or <i><tt>height</tt></i>
--   to zero, the module should interpret this as a hint that it will be
--   closed soon and shouldn't allocate further resources. This convention
--   is used to implement <a>pixbufGetFileInfo</a> efficiently.
--   
--   <i>Since: 2.2</i>
type PixbufModuleSizeFunc_WithClosures = Int32 -> Int32 -> Ptr () -> IO ()

-- | A simple wrapper that ignores the closure arguments.
drop_closures_PixbufModuleSizeFunc :: PixbufModuleSizeFunc -> PixbufModuleSizeFunc_WithClosures

-- | Given a pointer to a foreign C function, wrap it into a function
--   callable from Haskell.
dynamic_PixbufModuleSizeFunc :: (HasCallStack, MonadIO m) => FunPtr C_PixbufModuleSizeFunc -> Int32 -> Int32 -> Ptr () -> m ()

-- | Wrap the callback into a <a>GClosure</a>.
genClosure_PixbufModuleSizeFunc :: MonadIO m => PixbufModuleSizeFunc -> m (GClosure C_PixbufModuleSizeFunc)

-- | Generate a function pointer callable from C code, from a
--   <a>C_PixbufModuleSizeFunc</a>.
mk_PixbufModuleSizeFunc :: C_PixbufModuleSizeFunc -> IO (FunPtr C_PixbufModuleSizeFunc)

-- | A convenience synonym for <tt><a>Nothing</a> :: <a>Maybe</a>
--   <a>PixbufModuleSizeFunc</a></tt>.
noPixbufModuleSizeFunc :: Maybe PixbufModuleSizeFunc

-- | A convenience synonym for <tt><a>Nothing</a> :: <a>Maybe</a>
--   <a>PixbufModuleSizeFunc_WithClosures</a></tt>.
noPixbufModuleSizeFunc_WithClosures :: Maybe PixbufModuleSizeFunc_WithClosures

-- | Wrap a <a>PixbufModuleSizeFunc</a> into a
--   <a>C_PixbufModuleSizeFunc</a>.
wrap_PixbufModuleSizeFunc :: Maybe (Ptr (FunPtr C_PixbufModuleSizeFunc)) -> PixbufModuleSizeFunc_WithClosures -> C_PixbufModuleSizeFunc

-- | Type for the callback on the (unwrapped) C side.
type C_PixbufModuleStopLoadFunc = Ptr () -> Ptr Ptr GError -> IO CInt

-- | Finalizes the image loading state.
--   
--   This function is called on success and error states.
type PixbufModuleStopLoadFunc = Ptr () -> IO ()

-- | Given a pointer to a foreign C function, wrap it into a function
--   callable from Haskell.
dynamic_PixbufModuleStopLoadFunc :: (HasCallStack, MonadIO m) => FunPtr C_PixbufModuleStopLoadFunc -> Ptr () -> m ()

-- | Generate a function pointer callable from C code, from a
--   <a>C_PixbufModuleStopLoadFunc</a>.
mk_PixbufModuleStopLoadFunc :: C_PixbufModuleStopLoadFunc -> IO (FunPtr C_PixbufModuleStopLoadFunc)

-- | A convenience synonym for <tt><a>Nothing</a> :: <a>Maybe</a>
--   <a>PixbufModuleStopLoadFunc</a></tt>.
noPixbufModuleStopLoadFunc :: Maybe PixbufModuleStopLoadFunc

-- | Type for the callback on the (unwrapped) C side.
type C_PixbufModuleUpdatedFunc = Ptr Pixbuf -> Int32 -> Int32 -> Int32 -> Int32 -> Ptr () -> IO ()

-- | Defines the type of the function that gets called every time a region
--   of <i><tt>pixbuf</tt></i> is updated.
--   
--   <a>PixbufLoader</a> uses a function of this type to emit the "&lt;link
--   linkend="GdkPixbufLoader-area-updated"&gt;area_updated&lt;/link&gt;"
--   signal.
--   
--   <i>Since: 2.2</i>
type PixbufModuleUpdatedFunc = Pixbuf -> Int32 -> Int32 -> Int32 -> Int32 -> IO ()

-- | Defines the type of the function that gets called every time a region
--   of <i><tt>pixbuf</tt></i> is updated.
--   
--   <a>PixbufLoader</a> uses a function of this type to emit the "&lt;link
--   linkend="GdkPixbufLoader-area-updated"&gt;area_updated&lt;/link&gt;"
--   signal.
--   
--   <i>Since: 2.2</i>
type PixbufModuleUpdatedFunc_WithClosures = Pixbuf -> Int32 -> Int32 -> Int32 -> Int32 -> Ptr () -> IO ()

-- | A simple wrapper that ignores the closure arguments.
drop_closures_PixbufModuleUpdatedFunc :: PixbufModuleUpdatedFunc -> PixbufModuleUpdatedFunc_WithClosures

-- | Given a pointer to a foreign C function, wrap it into a function
--   callable from Haskell.
dynamic_PixbufModuleUpdatedFunc :: (HasCallStack, MonadIO m, IsPixbuf a) => FunPtr C_PixbufModuleUpdatedFunc -> a -> Int32 -> Int32 -> Int32 -> Int32 -> Ptr () -> m ()

-- | Wrap the callback into a <a>GClosure</a>.
genClosure_PixbufModuleUpdatedFunc :: MonadIO m => PixbufModuleUpdatedFunc -> m (GClosure C_PixbufModuleUpdatedFunc)

-- | Generate a function pointer callable from C code, from a
--   <a>C_PixbufModuleUpdatedFunc</a>.
mk_PixbufModuleUpdatedFunc :: C_PixbufModuleUpdatedFunc -> IO (FunPtr C_PixbufModuleUpdatedFunc)

-- | A convenience synonym for <tt><a>Nothing</a> :: <a>Maybe</a>
--   <a>PixbufModuleUpdatedFunc</a></tt>.
noPixbufModuleUpdatedFunc :: Maybe PixbufModuleUpdatedFunc

-- | A convenience synonym for <tt><a>Nothing</a> :: <a>Maybe</a>
--   <a>PixbufModuleUpdatedFunc_WithClosures</a></tt>.
noPixbufModuleUpdatedFunc_WithClosures :: Maybe PixbufModuleUpdatedFunc_WithClosures

-- | Wrap a <a>PixbufModuleUpdatedFunc</a> into a
--   <a>C_PixbufModuleUpdatedFunc</a>.
wrap_PixbufModuleUpdatedFunc :: Maybe (Ptr (FunPtr C_PixbufModuleUpdatedFunc)) -> PixbufModuleUpdatedFunc_WithClosures -> C_PixbufModuleUpdatedFunc

-- | Type for the callback on the (unwrapped) C side.
type C_PixbufSaveFunc = Ptr Word8 -> CSize -> Ptr Ptr GError -> Ptr () -> IO CInt

-- | Save functions used by
--   <a>Pixbuf</a>.<tt><i>save_to_callback</i></tt>().
--   
--   This function is called once for each block of bytes that is "written"
--   by <tt>gdk_pixbuf_save_to_callback()</tt>.
--   
--   If successful it should return <tt>TRUE</tt>; if an error occurs it
--   should set <tt>error</tt> and return <tt>FALSE</tt>, in which case
--   <tt>gdk_pixbuf_save_to_callback()</tt> will fail with the same error.
--   
--   <i>Since: 2.4</i>
type PixbufSaveFunc = ByteString -> IO (Bool, GError)

-- | Save functions used by
--   <a>Pixbuf</a>.<tt><i>save_to_callback</i></tt>().
--   
--   This function is called once for each block of bytes that is "written"
--   by <tt>gdk_pixbuf_save_to_callback()</tt>.
--   
--   If successful it should return <tt>TRUE</tt>; if an error occurs it
--   should set <tt>error</tt> and return <tt>FALSE</tt>, in which case
--   <tt>gdk_pixbuf_save_to_callback()</tt> will fail with the same error.
--   
--   <i>Since: 2.4</i>
type PixbufSaveFunc_WithClosures = ByteString -> Ptr () -> IO (Bool, GError)

-- | A simple wrapper that ignores the closure arguments.
drop_closures_PixbufSaveFunc :: PixbufSaveFunc -> PixbufSaveFunc_WithClosures

-- | Given a pointer to a foreign C function, wrap it into a function
--   callable from Haskell.
dynamic_PixbufSaveFunc :: (HasCallStack, MonadIO m) => FunPtr C_PixbufSaveFunc -> ByteString -> Ptr () -> m (Bool, GError)

-- | Wrap the callback into a <a>GClosure</a>.
genClosure_PixbufSaveFunc :: MonadIO m => PixbufSaveFunc -> m (GClosure C_PixbufSaveFunc)

-- | Generate a function pointer callable from C code, from a
--   <a>C_PixbufSaveFunc</a>.
mk_PixbufSaveFunc :: C_PixbufSaveFunc -> IO (FunPtr C_PixbufSaveFunc)

-- | A convenience synonym for <tt><a>Nothing</a> :: <a>Maybe</a>
--   <a>PixbufSaveFunc</a></tt>.
noPixbufSaveFunc :: Maybe PixbufSaveFunc

-- | A convenience synonym for <tt><a>Nothing</a> :: <a>Maybe</a>
--   <a>PixbufSaveFunc_WithClosures</a></tt>.
noPixbufSaveFunc_WithClosures :: Maybe PixbufSaveFunc_WithClosures

-- | Wrap a <a>PixbufSaveFunc</a> into a <a>C_PixbufSaveFunc</a>.
wrap_PixbufSaveFunc :: Maybe (Ptr (FunPtr C_PixbufSaveFunc)) -> PixbufSaveFunc_WithClosures -> C_PixbufSaveFunc


-- | A <tt>GdkPixbufModule</tt> contains the necessary functions to load
--   and save images in a certain file format.
--   
--   If <tt>GdkPixbuf</tt> has been compiled with <tt>GModule</tt> support,
--   it can be extended by modules which can load (and perhaps also save)
--   new image and animation formats.
--   
--   <h2>Implementing modules</h2>
--   
--   The <tt>GdkPixbuf</tt> interfaces needed for implementing modules are
--   contained in <tt>gdk-pixbuf-io.h</tt> (and
--   <tt>gdk-pixbuf-animation.h</tt> if the module supports animations).
--   They are not covered by the same stability guarantees as the regular
--   GdkPixbuf API. To underline this fact, they are protected by the
--   <tt>GDK_PIXBUF_ENABLE_BACKEND</tt> pre-processor symbol.
--   
--   Each loadable module must contain a
--   <tt>GdkPixbufModuleFillVtableFunc</tt> function named
--   <tt>fill_vtable</tt>, which will get called when the module is loaded
--   and must set the function pointers of the <tt>GdkPixbufModule</tt>.
--   
--   In order to make format-checking work before actually loading the
--   modules (which may require calling <tt>dlopen</tt> to load image
--   libraries), modules export their signatures (and other information)
--   via the <tt>fill_info</tt> function. An external utility,
--   <tt>gdk-pixbuf-query-loaders</tt>, uses this to create a text file
--   containing a list of all available loaders and their signatures. This
--   file is then read at runtime by <tt>GdkPixbuf</tt> to obtain the list
--   of available loaders and their signatures.
--   
--   Modules may only implement a subset of the functionality available via
--   <tt>GdkPixbufModule</tt>. If a particular functionality is not
--   implemented, the <tt>fill_vtable</tt> function will simply not set the
--   corresponding function pointers of the <tt>GdkPixbufModule</tt>
--   structure. If a module supports incremental loading (i.e. provides
--   <tt>begin_load</tt>, <tt>stop_load</tt> and <tt>load_increment</tt>),
--   it doesn't have to implement <tt>load</tt>, since <tt>GdkPixbuf</tt>
--   can supply a generic <tt>load</tt> implementation wrapping the
--   incremental loading.
--   
--   <h2>Installing modules</h2>
--   
--   Installing a module is a two-step process:
--   
--   <ul>
--   <li>copy the module file(s) to the loader directory (normally
--   <tt>$libdir/gdk-pixbuf-2.0/$version/loaders</tt>, unless overridden by
--   the environment variable <tt>GDK_PIXBUF_MODULEDIR</tt>)</li>
--   <li>call <tt>gdk-pixbuf-query-loaders</tt> to update the module file
--   (normally <tt>$libdir/gdk-pixbuf-2.0/$version/loaders.cache</tt>,
--   unless overridden by the environment variable
--   <tt>GDK_PIXBUF_MODULE_FILE</tt>)</li>
--   </ul>
module GI.GdkPixbuf.Structs.PixbufModule

-- | Memory-managed wrapper type.
newtype PixbufModule
PixbufModule :: ManagedPtr PixbufModule -> PixbufModule

-- | Construct a <a>PixbufModule</a> struct initialized to zero.
newZeroPixbufModule :: MonadIO m => m PixbufModule

-- | Set the value of the “<tt>info</tt>” field to <a>Nothing</a>. When
--   <a>overloading</a> is enabled, this is equivalent to
--   
--   <pre>
--   <a>clear</a> #info
--   </pre>
clearPixbufModuleInfo :: MonadIO m => PixbufModule -> m ()

-- | Get the value of the “<tt>info</tt>” field. When <a>overloading</a> is
--   enabled, this is equivalent to
--   
--   <pre>
--   <a>get</a> pixbufModule #info
--   </pre>
getPixbufModuleInfo :: MonadIO m => PixbufModule -> m (Maybe PixbufFormat)

-- | Set the value of the “<tt>info</tt>” field. When <a>overloading</a> is
--   enabled, this is equivalent to
--   
--   <pre>
--   <a>set</a> pixbufModule [ #info <a>:=</a> value ]
--   </pre>
setPixbufModuleInfo :: MonadIO m => PixbufModule -> Ptr PixbufFormat -> m ()

-- | Set the value of the “<tt>is_save_option_supported</tt>” field to
--   <a>Nothing</a>. When <a>overloading</a> is enabled, this is equivalent
--   to
--   
--   <pre>
--   <a>clear</a> #isSaveOptionSupported
--   </pre>
clearPixbufModuleIsSaveOptionSupported :: MonadIO m => PixbufModule -> m ()

-- | Get the value of the “<tt>is_save_option_supported</tt>” field. When
--   <a>overloading</a> is enabled, this is equivalent to
--   
--   <pre>
--   <a>get</a> pixbufModule #isSaveOptionSupported
--   </pre>
getPixbufModuleIsSaveOptionSupported :: MonadIO m => PixbufModule -> m (Maybe PixbufModuleSaveOptionSupportedFunc)

-- | Set the value of the “<tt>is_save_option_supported</tt>” field. When
--   <a>overloading</a> is enabled, this is equivalent to
--   
--   <pre>
--   <a>set</a> pixbufModule [ #isSaveOptionSupported <a>:=</a> value ]
--   </pre>
setPixbufModuleIsSaveOptionSupported :: MonadIO m => PixbufModule -> FunPtr C_PixbufModuleSaveOptionSupportedFunc -> m ()

-- | Set the value of the “<tt>load</tt>” field to <a>Nothing</a>. When
--   <a>overloading</a> is enabled, this is equivalent to
--   
--   <pre>
--   <a>clear</a> #load
--   </pre>
clearPixbufModuleLoad :: MonadIO m => PixbufModule -> m ()

-- | Get the value of the “<tt>load</tt>” field. When <a>overloading</a> is
--   enabled, this is equivalent to
--   
--   <pre>
--   <a>get</a> pixbufModule #load
--   </pre>
getPixbufModuleLoad :: MonadIO m => PixbufModule -> m (Maybe PixbufModuleLoadFunc)

-- | Set the value of the “<tt>load</tt>” field. When <a>overloading</a> is
--   enabled, this is equivalent to
--   
--   <pre>
--   <a>set</a> pixbufModule [ #load <a>:=</a> value ]
--   </pre>
setPixbufModuleLoad :: MonadIO m => PixbufModule -> FunPtr C_PixbufModuleLoadFunc -> m ()

-- | Set the value of the “<tt>load_animation</tt>” field to
--   <a>Nothing</a>. When <a>overloading</a> is enabled, this is equivalent
--   to
--   
--   <pre>
--   <a>clear</a> #loadAnimation
--   </pre>
clearPixbufModuleLoadAnimation :: MonadIO m => PixbufModule -> m ()

-- | Get the value of the “<tt>load_animation</tt>” field. When
--   <a>overloading</a> is enabled, this is equivalent to
--   
--   <pre>
--   <a>get</a> pixbufModule #loadAnimation
--   </pre>
getPixbufModuleLoadAnimation :: MonadIO m => PixbufModule -> m (Maybe PixbufModuleLoadAnimationFunc)

-- | Set the value of the “<tt>load_animation</tt>” field. When
--   <a>overloading</a> is enabled, this is equivalent to
--   
--   <pre>
--   <a>set</a> pixbufModule [ #loadAnimation <a>:=</a> value ]
--   </pre>
setPixbufModuleLoadAnimation :: MonadIO m => PixbufModule -> FunPtr C_PixbufModuleLoadAnimationFunc -> m ()

-- | Set the value of the “<tt>load_increment</tt>” field to
--   <a>Nothing</a>. When <a>overloading</a> is enabled, this is equivalent
--   to
--   
--   <pre>
--   <a>clear</a> #loadIncrement
--   </pre>
clearPixbufModuleLoadIncrement :: MonadIO m => PixbufModule -> m ()

-- | Get the value of the “<tt>load_increment</tt>” field. When
--   <a>overloading</a> is enabled, this is equivalent to
--   
--   <pre>
--   <a>get</a> pixbufModule #loadIncrement
--   </pre>
getPixbufModuleLoadIncrement :: MonadIO m => PixbufModule -> m (Maybe PixbufModuleIncrementLoadFunc)

-- | Set the value of the “<tt>load_increment</tt>” field. When
--   <a>overloading</a> is enabled, this is equivalent to
--   
--   <pre>
--   <a>set</a> pixbufModule [ #loadIncrement <a>:=</a> value ]
--   </pre>
setPixbufModuleLoadIncrement :: MonadIO m => PixbufModule -> FunPtr C_PixbufModuleIncrementLoadFunc -> m ()

-- | Set the value of the “<tt>load_xpm_data</tt>” field to <a>Nothing</a>.
--   When <a>overloading</a> is enabled, this is equivalent to
--   
--   <pre>
--   <a>clear</a> #loadXpmData
--   </pre>
clearPixbufModuleLoadXpmData :: MonadIO m => PixbufModule -> m ()

-- | Get the value of the “<tt>load_xpm_data</tt>” field. When
--   <a>overloading</a> is enabled, this is equivalent to
--   
--   <pre>
--   <a>get</a> pixbufModule #loadXpmData
--   </pre>
getPixbufModuleLoadXpmData :: MonadIO m => PixbufModule -> m (Maybe PixbufModuleLoadXpmDataFunc)

-- | Set the value of the “<tt>load_xpm_data</tt>” field. When
--   <a>overloading</a> is enabled, this is equivalent to
--   
--   <pre>
--   <a>set</a> pixbufModule [ #loadXpmData <a>:=</a> value ]
--   </pre>
setPixbufModuleLoadXpmData :: MonadIO m => PixbufModule -> FunPtr C_PixbufModuleLoadXpmDataFunc -> m ()

-- | Set the value of the “<tt>module</tt>” field to <a>Nothing</a>. When
--   <a>overloading</a> is enabled, this is equivalent to
--   
--   <pre>
--   <a>clear</a> #module
--   </pre>
clearPixbufModuleModule :: MonadIO m => PixbufModule -> m ()

-- | Get the value of the “<tt>module</tt>” field. When <a>overloading</a>
--   is enabled, this is equivalent to
--   
--   <pre>
--   <a>get</a> pixbufModule #module
--   </pre>
getPixbufModuleModule :: MonadIO m => PixbufModule -> m (Maybe Module)

-- | Set the value of the “<tt>module</tt>” field. When <a>overloading</a>
--   is enabled, this is equivalent to
--   
--   <pre>
--   <a>set</a> pixbufModule [ #module <a>:=</a> value ]
--   </pre>
setPixbufModuleModule :: MonadIO m => PixbufModule -> Ptr Module -> m ()

-- | Set the value of the “<tt>module_name</tt>” field to <a>Nothing</a>.
--   When <a>overloading</a> is enabled, this is equivalent to
--   
--   <pre>
--   <a>clear</a> #moduleName
--   </pre>
clearPixbufModuleModuleName :: MonadIO m => PixbufModule -> m ()

-- | Get the value of the “<tt>module_name</tt>” field. When
--   <a>overloading</a> is enabled, this is equivalent to
--   
--   <pre>
--   <a>get</a> pixbufModule #moduleName
--   </pre>
getPixbufModuleModuleName :: MonadIO m => PixbufModule -> m (Maybe Text)

-- | Set the value of the “<tt>module_name</tt>” field. When
--   <a>overloading</a> is enabled, this is equivalent to
--   
--   <pre>
--   <a>set</a> pixbufModule [ #moduleName <a>:=</a> value ]
--   </pre>
setPixbufModuleModuleName :: MonadIO m => PixbufModule -> CString -> m ()

-- | Set the value of the “<tt>module_path</tt>” field to <a>Nothing</a>.
--   When <a>overloading</a> is enabled, this is equivalent to
--   
--   <pre>
--   <a>clear</a> #modulePath
--   </pre>
clearPixbufModuleModulePath :: MonadIO m => PixbufModule -> m ()

-- | Get the value of the “<tt>module_path</tt>” field. When
--   <a>overloading</a> is enabled, this is equivalent to
--   
--   <pre>
--   <a>get</a> pixbufModule #modulePath
--   </pre>
getPixbufModuleModulePath :: MonadIO m => PixbufModule -> m (Maybe Text)

-- | Set the value of the “<tt>module_path</tt>” field. When
--   <a>overloading</a> is enabled, this is equivalent to
--   
--   <pre>
--   <a>set</a> pixbufModule [ #modulePath <a>:=</a> value ]
--   </pre>
setPixbufModuleModulePath :: MonadIO m => PixbufModule -> CString -> m ()

-- | Set the value of the “<tt>save</tt>” field to <a>Nothing</a>. When
--   <a>overloading</a> is enabled, this is equivalent to
--   
--   <pre>
--   <a>clear</a> #save
--   </pre>
clearPixbufModuleSave :: MonadIO m => PixbufModule -> m ()

-- | Get the value of the “<tt>save</tt>” field. When <a>overloading</a> is
--   enabled, this is equivalent to
--   
--   <pre>
--   <a>get</a> pixbufModule #save
--   </pre>
getPixbufModuleSave :: MonadIO m => PixbufModule -> m (Maybe PixbufModuleSaveFunc)

-- | Set the value of the “<tt>save</tt>” field. When <a>overloading</a> is
--   enabled, this is equivalent to
--   
--   <pre>
--   <a>set</a> pixbufModule [ #save <a>:=</a> value ]
--   </pre>
setPixbufModuleSave :: MonadIO m => PixbufModule -> FunPtr C_PixbufModuleSaveFunc -> m ()

-- | Set the value of the “<tt>stop_load</tt>” field to <a>Nothing</a>.
--   When <a>overloading</a> is enabled, this is equivalent to
--   
--   <pre>
--   <a>clear</a> #stopLoad
--   </pre>
clearPixbufModuleStopLoad :: MonadIO m => PixbufModule -> m ()

-- | Get the value of the “<tt>stop_load</tt>” field. When
--   <a>overloading</a> is enabled, this is equivalent to
--   
--   <pre>
--   <a>get</a> pixbufModule #stopLoad
--   </pre>
getPixbufModuleStopLoad :: MonadIO m => PixbufModule -> m (Maybe PixbufModuleStopLoadFunc)

-- | Set the value of the “<tt>stop_load</tt>” field. When
--   <a>overloading</a> is enabled, this is equivalent to
--   
--   <pre>
--   <a>set</a> pixbufModule [ #stopLoad <a>:=</a> value ]
--   </pre>
setPixbufModuleStopLoad :: MonadIO m => PixbufModule -> FunPtr C_PixbufModuleStopLoadFunc -> m ()
instance Data.GI.Base.BasicTypes.BoxedPtr GI.GdkPixbuf.Structs.PixbufModule.PixbufModule
instance Data.GI.Base.BasicTypes.CallocPtr GI.GdkPixbuf.Structs.PixbufModule.PixbufModule
instance (tag GHC.Types.~ 'Data.GI.Base.Attributes.AttrSet) => Data.GI.Base.Constructible.Constructible GI.GdkPixbuf.Structs.PixbufModule.PixbufModule tag
instance GHC.Classes.Eq GI.GdkPixbuf.Structs.PixbufModule.PixbufModule
instance Data.GI.Base.BasicTypes.ManagedPtrNewtype GI.GdkPixbuf.Structs.PixbufModule.PixbufModule


module GI.GdkPixbuf.Structs


-- | <i>No description available in the introspection data.</i>
module GI.GdkPixbuf.Objects.PixbufSimpleAnimIter

-- | Memory-managed wrapper type.
newtype PixbufSimpleAnimIter
PixbufSimpleAnimIter :: ManagedPtr PixbufSimpleAnimIter -> PixbufSimpleAnimIter

-- | Type class for types which can be safely cast to
--   <a>PixbufSimpleAnimIter</a>, for instance with
--   <a>toPixbufSimpleAnimIter</a>.
class (GObject o, IsDescendantOf PixbufSimpleAnimIter o) => IsPixbufSimpleAnimIter o

-- | Cast to <a>PixbufSimpleAnimIter</a>, for types for which this is known
--   to be safe. For general casts, use <a>castTo</a>.
toPixbufSimpleAnimIter :: (MonadIO m, IsPixbufSimpleAnimIter o) => o -> m PixbufSimpleAnimIter
instance GHC.Classes.Eq GI.GdkPixbuf.Objects.PixbufSimpleAnimIter.PixbufSimpleAnimIter
instance Data.GI.Base.BasicTypes.GObject GI.GdkPixbuf.Objects.PixbufSimpleAnimIter.PixbufSimpleAnimIter
instance Data.GI.Base.Overloading.HasParentTypes GI.GdkPixbuf.Objects.PixbufSimpleAnimIter.PixbufSimpleAnimIter
instance Data.GI.Base.GValue.IsGValue (GHC.Internal.Maybe.Maybe GI.GdkPixbuf.Objects.PixbufSimpleAnimIter.PixbufSimpleAnimIter)
instance (Data.GI.Base.BasicTypes.GObject o, Data.GI.Base.Overloading.IsDescendantOf GI.GdkPixbuf.Objects.PixbufSimpleAnimIter.PixbufSimpleAnimIter o) => GI.GdkPixbuf.Objects.PixbufSimpleAnimIter.IsPixbufSimpleAnimIter o
instance Data.GI.Base.BasicTypes.ManagedPtrNewtype GI.GdkPixbuf.Objects.PixbufSimpleAnimIter.PixbufSimpleAnimIter
instance Data.GI.Base.BasicTypes.TypedObject GI.GdkPixbuf.Objects.PixbufSimpleAnimIter.PixbufSimpleAnimIter


-- | An opaque struct representing a simple animation.
module GI.GdkPixbuf.Objects.PixbufSimpleAnim

-- | Memory-managed wrapper type.
newtype PixbufSimpleAnim
PixbufSimpleAnim :: ManagedPtr PixbufSimpleAnim -> PixbufSimpleAnim

-- | Type class for types which can be safely cast to
--   <a>PixbufSimpleAnim</a>, for instance with <a>toPixbufSimpleAnim</a>.
class (GObject o, IsDescendantOf PixbufSimpleAnim o) => IsPixbufSimpleAnim o

-- | Cast to <a>PixbufSimpleAnim</a>, for types for which this is known to
--   be safe. For general casts, use <a>castTo</a>.
toPixbufSimpleAnim :: (MonadIO m, IsPixbufSimpleAnim o) => o -> m PixbufSimpleAnim

-- | Adds a new frame to <i><tt>animation</tt></i>. The
--   <i><tt>pixbuf</tt></i> must have the dimensions specified when the
--   animation was constructed.
--   
--   <i>Since: 2.8</i>

-- | <i>Deprecated: (Since version 2.44)Use a different image loading
--   library for animatable assets</i>
pixbufSimpleAnimAddFrame :: (HasCallStack, MonadIO m, IsPixbufSimpleAnim a, IsPixbuf b) => a -> b -> m ()

-- | Gets whether <i><tt>animation</tt></i> should loop indefinitely when
--   it reaches the end.
--   
--   <i>Since: 2.18</i>

-- | <i>Deprecated: (Since version 2.44)Use a different image loading
--   library for animatable assets</i>
pixbufSimpleAnimGetLoop :: (HasCallStack, MonadIO m, IsPixbufSimpleAnim a) => a -> m Bool

-- | Creates a new, empty animation.
--   
--   <i>Since: 2.8</i>

-- | <i>Deprecated: (Since version 2.44)Use a different image loading
--   library for animatable assets</i>
pixbufSimpleAnimNew :: (HasCallStack, MonadIO m) => Int32 -> Int32 -> Float -> m PixbufSimpleAnim

-- | Sets whether <i><tt>animation</tt></i> should loop indefinitely when
--   it reaches the end.
--   
--   <i>Since: 2.18</i>

-- | <i>Deprecated: (Since version 2.44)Use a different image loading
--   library for animatable assets</i>
pixbufSimpleAnimSetLoop :: (HasCallStack, MonadIO m, IsPixbufSimpleAnim a) => a -> Bool -> m ()

-- | Construct a <a>GValueConstruct</a> with valid value for the
--   “<tt>loop</tt>” property. This is rarely needed directly, but it is
--   used by <a>new</a>.
constructPixbufSimpleAnimLoop :: (IsPixbufSimpleAnim o, MonadIO m) => Bool -> m (GValueConstruct o)

-- | Get the value of the “<tt>loop</tt>” property. When <a>overloading</a>
--   is enabled, this is equivalent to
--   
--   <pre>
--   <a>get</a> pixbufSimpleAnim #loop
--   </pre>
getPixbufSimpleAnimLoop :: (MonadIO m, IsPixbufSimpleAnim o) => o -> m Bool

-- | Set the value of the “<tt>loop</tt>” property. When <a>overloading</a>
--   is enabled, this is equivalent to
--   
--   <pre>
--   <a>set</a> pixbufSimpleAnim [ #loop <a>:=</a> value ]
--   </pre>
setPixbufSimpleAnimLoop :: (MonadIO m, IsPixbufSimpleAnim o) => o -> Bool -> m ()
instance GHC.Classes.Eq GI.GdkPixbuf.Objects.PixbufSimpleAnim.PixbufSimpleAnim
instance Data.GI.Base.BasicTypes.GObject GI.GdkPixbuf.Objects.PixbufSimpleAnim.PixbufSimpleAnim
instance Data.GI.Base.Overloading.HasParentTypes GI.GdkPixbuf.Objects.PixbufSimpleAnim.PixbufSimpleAnim
instance Data.GI.Base.GValue.IsGValue (GHC.Internal.Maybe.Maybe GI.GdkPixbuf.Objects.PixbufSimpleAnim.PixbufSimpleAnim)
instance (Data.GI.Base.BasicTypes.GObject o, Data.GI.Base.Overloading.IsDescendantOf GI.GdkPixbuf.Objects.PixbufSimpleAnim.PixbufSimpleAnim o) => GI.GdkPixbuf.Objects.PixbufSimpleAnim.IsPixbufSimpleAnim o
instance Data.GI.Base.BasicTypes.ManagedPtrNewtype GI.GdkPixbuf.Objects.PixbufSimpleAnim.PixbufSimpleAnim
instance Data.GI.Base.BasicTypes.TypedObject GI.GdkPixbuf.Objects.PixbufSimpleAnim.PixbufSimpleAnim


-- | <i>No description available in the introspection data.</i>
module GI.GdkPixbuf.Objects.PixbufNonAnim

-- | Memory-managed wrapper type.
newtype PixbufNonAnim
PixbufNonAnim :: ManagedPtr PixbufNonAnim -> PixbufNonAnim

-- | Type class for types which can be safely cast to <a>PixbufNonAnim</a>,
--   for instance with <a>toPixbufNonAnim</a>.
class (GObject o, IsDescendantOf PixbufNonAnim o) => IsPixbufNonAnim o

-- | Cast to <a>PixbufNonAnim</a>, for types for which this is known to be
--   safe. For general casts, use <a>castTo</a>.
toPixbufNonAnim :: (MonadIO m, IsPixbufNonAnim o) => o -> m PixbufNonAnim

-- | <i>No description available in the introspection data.</i>
pixbufNonAnimNew :: (HasCallStack, MonadIO m, IsPixbuf a) => a -> m PixbufNonAnim
instance GHC.Classes.Eq GI.GdkPixbuf.Objects.PixbufNonAnim.PixbufNonAnim
instance Data.GI.Base.BasicTypes.GObject GI.GdkPixbuf.Objects.PixbufNonAnim.PixbufNonAnim
instance Data.GI.Base.Overloading.HasParentTypes GI.GdkPixbuf.Objects.PixbufNonAnim.PixbufNonAnim
instance Data.GI.Base.GValue.IsGValue (GHC.Internal.Maybe.Maybe GI.GdkPixbuf.Objects.PixbufNonAnim.PixbufNonAnim)
instance (Data.GI.Base.BasicTypes.GObject o, Data.GI.Base.Overloading.IsDescendantOf GI.GdkPixbuf.Objects.PixbufNonAnim.PixbufNonAnim o) => GI.GdkPixbuf.Objects.PixbufNonAnim.IsPixbufNonAnim o
instance Data.GI.Base.BasicTypes.ManagedPtrNewtype GI.GdkPixbuf.Objects.PixbufNonAnim.PixbufNonAnim
instance Data.GI.Base.BasicTypes.TypedObject GI.GdkPixbuf.Objects.PixbufNonAnim.PixbufNonAnim


-- | Incremental image loader.
--   
--   <tt>GdkPixbufLoader</tt> provides a way for applications to drive the
--   process of loading an image, by letting them send the image data
--   directly to the loader instead of having the loader read the data from
--   a file. Applications can use this functionality instead of
--   <tt>gdk_pixbuf_new_from_file()</tt> or
--   <tt>gdk_pixbuf_animation_new_from_file()</tt> when they need to parse
--   image data in small chunks. For example, it should be used when
--   reading an image from a (potentially) slow network connection, or when
--   loading an extremely large file.
--   
--   To use <tt>GdkPixbufLoader</tt> to load an image, create a new
--   instance, and call <a>pixbufLoaderWrite</a> to send the data to it.
--   When done, <a>pixbufLoaderClose</a> should be called to end the stream
--   and finalize everything.
--   
--   The loader will emit three important signals throughout the process:
--   
--   <ul>
--   <li><a>PixbufLoader::sizePrepared</a> will be emitted as soon as the
--   image has enough information to determine the size of the image to be
--   used. If you want to scale the image while loading it, you can call
--   <a>pixbufLoaderSetSize</a> in response to this signal.</li>
--   <li><a>PixbufLoader::areaPrepared</a> will be emitted as soon as the
--   pixbuf of the desired has been allocated. You can obtain the
--   <tt>GdkPixbuf</tt> instance by calling <a>pixbufLoaderGetPixbuf</a>.
--   If you want to use it, simply acquire a reference to it. You can also
--   call <tt>gdk_pixbuf_loader_get_pixbuf()</tt> later to get the same
--   pixbuf.</li>
--   <li><a>PixbufLoader::areaUpdated</a> will be emitted every time a
--   region is updated. This way you can update a partially completed
--   image. Note that you do not know anything about the completeness of an
--   image from the updated area. For example, in an interlaced image you
--   will need to make several passes before the image is done
--   loading.</li>
--   </ul>
--   
--   <h2>Loading an animation</h2>
--   
--   Loading an animation is almost as easy as loading an image. Once the
--   first <a>PixbufLoader::areaPrepared</a> signal has been emitted, you
--   can call <a>pixbufLoaderGetAnimation</a> to get the
--   <a>PixbufAnimation</a> instance, and then call and
--   <a>pixbufAnimationGetIter</a> to get a <a>PixbufAnimationIter</a> to
--   retrieve the pixbuf for the desired time stamp.
module GI.GdkPixbuf.Objects.PixbufLoader

-- | Memory-managed wrapper type.
newtype PixbufLoader
PixbufLoader :: ManagedPtr PixbufLoader -> PixbufLoader

-- | Type class for types which can be safely cast to <a>PixbufLoader</a>,
--   for instance with <a>toPixbufLoader</a>.
class (GObject o, IsDescendantOf PixbufLoader o) => IsPixbufLoader o

-- | Cast to <a>PixbufLoader</a>, for types for which this is known to be
--   safe. For general casts, use <a>castTo</a>.
toPixbufLoader :: (MonadIO m, IsPixbufLoader o) => o -> m PixbufLoader

-- | Informs a pixbuf loader that no further writes with
--   <a>pixbufLoaderWrite</a> will occur, so that it can free its internal
--   loading structures.
--   
--   This function also tries to parse any data that hasn't yet been
--   parsed; if the remaining data is partial or corrupt, an error will be
--   returned.
--   
--   If <tt>FALSE</tt> is returned, <tt>error</tt> will be set to an error
--   from the <tt>GDK_PIXBUF_ERROR</tt> or <tt>G_FILE_ERROR</tt> domains.
--   
--   If you're just cancelling a load rather than expecting it to be
--   finished, passing <tt>NULL</tt> for <tt>error</tt> to ignore it is
--   reasonable.
--   
--   Remember that this function does not release a reference on the
--   loader, so you will need to explicitly release any reference you hold.
pixbufLoaderClose :: (HasCallStack, MonadIO m, IsPixbufLoader a) => a -> m ()

-- | Queries the <a>PixbufAnimation</a> that a pixbuf loader is currently
--   creating.
--   
--   In general it only makes sense to call this function after the
--   <a>PixbufLoader::areaPrepared</a> signal has been emitted by the
--   loader.
--   
--   If the loader doesn't have enough bytes yet, and hasn't emitted the
--   <tt>area-prepared</tt> signal, this function will return
--   <tt>NULL</tt>.
pixbufLoaderGetAnimation :: (HasCallStack, MonadIO m, IsPixbufLoader a) => a -> m (Maybe PixbufAnimation)

-- | Obtains the available information about the format of the currently
--   loading image file.
--   
--   <i>Since: 2.2</i>
pixbufLoaderGetFormat :: (HasCallStack, MonadIO m, IsPixbufLoader a) => a -> m (Maybe PixbufFormat)

-- | Queries the <a>Pixbuf</a> that a pixbuf loader is currently creating.
--   
--   In general it only makes sense to call this function after the
--   <a>PixbufLoader::areaPrepared</a> signal has been emitted by the
--   loader; this means that enough data has been read to know the size of
--   the image that will be allocated.
--   
--   If the loader has not received enough data via
--   <a>pixbufLoaderWrite</a>, then this function returns <tt>NULL</tt>.
--   
--   The returned pixbuf will be the same in all future calls to the
--   loader, so if you want to keep using it, you should acquire a
--   reference to it.
--   
--   Additionally, if the loader is an animation, it will return the
--   "static image" of the animation (see
--   <a>pixbufAnimationGetStaticImage</a>).
pixbufLoaderGetPixbuf :: (HasCallStack, MonadIO m, IsPixbufLoader a) => a -> m (Maybe Pixbuf)

-- | Creates a new pixbuf loader object.
pixbufLoaderNew :: (HasCallStack, MonadIO m) => m PixbufLoader

-- | Creates a new pixbuf loader object that always attempts to parse image
--   data as if it were an image of MIME type <i><tt>mimeType</tt></i>,
--   instead of identifying the type automatically.
--   
--   This function is useful if you want an error if the image isn't the
--   expected MIME type; for loading image formats that can't be reliably
--   identified by looking at the data; or if the user manually forces a
--   specific MIME type.
--   
--   The list of supported mime types depends on what image loaders are
--   installed, but typically "image/png", "image/jpeg", "image/gif",
--   "image/tiff" and "image/x-xpixmap" are among the supported mime types.
--   To obtain the full list of supported mime types, call
--   <a>pixbufFormatGetMimeTypes</a> on each of the <a>PixbufFormat</a>
--   structs returned by <a>pixbufGetFormats</a>.
--   
--   <i>Since: 2.4</i>
pixbufLoaderNewWithMimeType :: (HasCallStack, MonadIO m) => Text -> m PixbufLoader

-- | Creates a new pixbuf loader object that always attempts to parse image
--   data as if it were an image of type <i><tt>imageType</tt></i>, instead
--   of identifying the type automatically.
--   
--   This function is useful if you want an error if the image isn't the
--   expected type; for loading image formats that can't be reliably
--   identified by looking at the data; or if the user manually forces a
--   specific type.
--   
--   The list of supported image formats depends on what image loaders are
--   installed, but typically "png", "jpeg", "gif", "tiff" and "xpm" are
--   among the supported formats. To obtain the full list of supported
--   image formats, call <a>pixbufFormatGetName</a> on each of the
--   <a>PixbufFormat</a> structs returned by <a>pixbufGetFormats</a>.
pixbufLoaderNewWithType :: (HasCallStack, MonadIO m) => Text -> m PixbufLoader

-- | Causes the image to be scaled while it is loaded.
--   
--   The desired image size can be determined relative to the original size
--   of the image by calling <a>pixbufLoaderSetSize</a> from a signal
--   handler for the <a>sizePrepared</a> signal.
--   
--   Attempts to set the desired image size are ignored after the emission
--   of the <a>sizePrepared</a> signal.
--   
--   <i>Since: 2.2</i>
pixbufLoaderSetSize :: (HasCallStack, MonadIO m, IsPixbufLoader a) => a -> Int32 -> Int32 -> m ()

-- | Parses the next <tt>count</tt> bytes in the given image buffer.
pixbufLoaderWrite :: (HasCallStack, MonadIO m, IsPixbufLoader a) => a -> ByteString -> m ()

-- | Parses the next contents of the given image buffer.
--   
--   <i>Since: 2.30</i>
pixbufLoaderWriteBytes :: (HasCallStack, MonadIO m, IsPixbufLoader a) => a -> Bytes -> m ()

-- | This signal is emitted when the pixbuf loader has allocated the pixbuf
--   in the desired size.
--   
--   After this signal is emitted, applications can call
--   <a>pixbufLoaderGetPixbuf</a> to fetch the partially-loaded pixbuf.
type PixbufLoaderAreaPreparedCallback = IO ()

-- | Connect a signal handler for the <a>areaPrepared</a> signal, to be run
--   after the default handler. When <a>overloading</a> is enabled, this is
--   equivalent to
--   
--   <pre>
--   <a>after</a> pixbufLoader #areaPrepared callback
--   </pre>
--   
--   By default the object invoking the signal is not passed to the
--   callback. If you need to access it, you can use the implit
--   <tt>?self</tt> parameter. Note that this requires activating the
--   <tt>ImplicitParams</tt> GHC extension.
afterPixbufLoaderAreaPrepared :: (IsPixbufLoader a, MonadIO m) => a -> ((?self :: a) => PixbufLoaderAreaPreparedCallback) -> m SignalHandlerId

-- | Connect a signal handler for the <a>areaPrepared</a> signal, to be run
--   before the default handler. When <a>overloading</a> is enabled, this
--   is equivalent to
--   
--   <pre>
--   <a>on</a> pixbufLoader #areaPrepared callback
--   </pre>
onPixbufLoaderAreaPrepared :: (IsPixbufLoader a, MonadIO m) => a -> ((?self :: a) => PixbufLoaderAreaPreparedCallback) -> m SignalHandlerId

-- | This signal is emitted when a significant area of the image being
--   loaded has been updated.
--   
--   Normally it means that a complete scanline has been read in, but it
--   could be a different area as well.
--   
--   Applications can use this signal to know when to repaint areas of an
--   image that is being loaded.
type PixbufLoaderAreaUpdatedCallback = Int32 -> Int32 -> Int32 -> Int32 -> IO ()

-- | Connect a signal handler for the <a>areaUpdated</a> signal, to be run
--   after the default handler. When <a>overloading</a> is enabled, this is
--   equivalent to
--   
--   <pre>
--   <a>after</a> pixbufLoader #areaUpdated callback
--   </pre>
--   
--   By default the object invoking the signal is not passed to the
--   callback. If you need to access it, you can use the implit
--   <tt>?self</tt> parameter. Note that this requires activating the
--   <tt>ImplicitParams</tt> GHC extension.
afterPixbufLoaderAreaUpdated :: (IsPixbufLoader a, MonadIO m) => a -> ((?self :: a) => PixbufLoaderAreaUpdatedCallback) -> m SignalHandlerId

-- | Connect a signal handler for the <a>areaUpdated</a> signal, to be run
--   before the default handler. When <a>overloading</a> is enabled, this
--   is equivalent to
--   
--   <pre>
--   <a>on</a> pixbufLoader #areaUpdated callback
--   </pre>
onPixbufLoaderAreaUpdated :: (IsPixbufLoader a, MonadIO m) => a -> ((?self :: a) => PixbufLoaderAreaUpdatedCallback) -> m SignalHandlerId

-- | This signal is emitted when <a>pixbufLoaderClose</a> is called.
--   
--   It can be used by different parts of an application to receive
--   notification when an image loader is closed by the code that drives
--   it.
type PixbufLoaderClosedCallback = IO ()

-- | Connect a signal handler for the <a>closed</a> signal, to be run after
--   the default handler. When <a>overloading</a> is enabled, this is
--   equivalent to
--   
--   <pre>
--   <a>after</a> pixbufLoader #closed callback
--   </pre>
--   
--   By default the object invoking the signal is not passed to the
--   callback. If you need to access it, you can use the implit
--   <tt>?self</tt> parameter. Note that this requires activating the
--   <tt>ImplicitParams</tt> GHC extension.
afterPixbufLoaderClosed :: (IsPixbufLoader a, MonadIO m) => a -> ((?self :: a) => PixbufLoaderClosedCallback) -> m SignalHandlerId

-- | Connect a signal handler for the <a>closed</a> signal, to be run
--   before the default handler. When <a>overloading</a> is enabled, this
--   is equivalent to
--   
--   <pre>
--   <a>on</a> pixbufLoader #closed callback
--   </pre>
onPixbufLoaderClosed :: (IsPixbufLoader a, MonadIO m) => a -> ((?self :: a) => PixbufLoaderClosedCallback) -> m SignalHandlerId

-- | This signal is emitted when the pixbuf loader has been fed the initial
--   amount of data that is required to figure out the size of the image
--   that it will create.
--   
--   Applications can call <a>pixbufLoaderSetSize</a> in response to this
--   signal to set the desired size to which the image should be scaled.
type PixbufLoaderSizePreparedCallback = Int32 -> Int32 -> IO ()

-- | Connect a signal handler for the <a>sizePrepared</a> signal, to be run
--   after the default handler. When <a>overloading</a> is enabled, this is
--   equivalent to
--   
--   <pre>
--   <a>after</a> pixbufLoader #sizePrepared callback
--   </pre>
--   
--   By default the object invoking the signal is not passed to the
--   callback. If you need to access it, you can use the implit
--   <tt>?self</tt> parameter. Note that this requires activating the
--   <tt>ImplicitParams</tt> GHC extension.
afterPixbufLoaderSizePrepared :: (IsPixbufLoader a, MonadIO m) => a -> ((?self :: a) => PixbufLoaderSizePreparedCallback) -> m SignalHandlerId

-- | Connect a signal handler for the <a>sizePrepared</a> signal, to be run
--   before the default handler. When <a>overloading</a> is enabled, this
--   is equivalent to
--   
--   <pre>
--   <a>on</a> pixbufLoader #sizePrepared callback
--   </pre>
onPixbufLoaderSizePrepared :: (IsPixbufLoader a, MonadIO m) => a -> ((?self :: a) => PixbufLoaderSizePreparedCallback) -> m SignalHandlerId
instance GHC.Classes.Eq GI.GdkPixbuf.Objects.PixbufLoader.PixbufLoader
instance Data.GI.Base.BasicTypes.GObject GI.GdkPixbuf.Objects.PixbufLoader.PixbufLoader
instance Data.GI.Base.Overloading.HasParentTypes GI.GdkPixbuf.Objects.PixbufLoader.PixbufLoader
instance Data.GI.Base.GValue.IsGValue (GHC.Internal.Maybe.Maybe GI.GdkPixbuf.Objects.PixbufLoader.PixbufLoader)
instance (Data.GI.Base.BasicTypes.GObject o, Data.GI.Base.Overloading.IsDescendantOf GI.GdkPixbuf.Objects.PixbufLoader.PixbufLoader o) => GI.GdkPixbuf.Objects.PixbufLoader.IsPixbufLoader o
instance Data.GI.Base.BasicTypes.ManagedPtrNewtype GI.GdkPixbuf.Objects.PixbufLoader.PixbufLoader
instance Data.GI.Base.BasicTypes.TypedObject GI.GdkPixbuf.Objects.PixbufLoader.PixbufLoader


-- | An opaque object representing an iterator which points to a certain
--   position in an animation.
module GI.GdkPixbuf.Objects.PixbufAnimationIter

-- | Memory-managed wrapper type.
newtype PixbufAnimationIter
PixbufAnimationIter :: ManagedPtr PixbufAnimationIter -> PixbufAnimationIter

-- | Type class for types which can be safely cast to
--   <a>PixbufAnimationIter</a>, for instance with
--   <a>toPixbufAnimationIter</a>.
class (GObject o, IsDescendantOf PixbufAnimationIter o) => IsPixbufAnimationIter o

-- | Cast to <a>PixbufAnimationIter</a>, for types for which this is known
--   to be safe. For general casts, use <a>castTo</a>.
toPixbufAnimationIter :: (MonadIO m, IsPixbufAnimationIter o) => o -> m PixbufAnimationIter

-- | Possibly advances an animation to a new frame.
--   
--   Chooses the frame based on the start time passed to
--   <a>pixbufAnimationGetIter</a>.
--   
--   <i><tt>currentTime</tt></i> would normally come from
--   <a>getCurrentTime</a>, and must be greater than or equal to the time
--   passed to <a>pixbufAnimationGetIter</a>, and must increase or remain
--   unchanged each time <a>pixbufAnimationIterGetPixbuf</a> is called.
--   That is, you can't go backward in time; animations only play forward.
--   
--   As a shortcut, pass <tt>NULL</tt> for the current time and
--   <a>getCurrentTime</a> will be invoked on your behalf. So you only need
--   to explicitly pass <i><tt>currentTime</tt></i> if you're doing
--   something odd like playing the animation at double speed.
--   
--   If this function returns <tt>FALSE</tt>, there's no need to update the
--   animation display, assuming the display had been rendered prior to
--   advancing; if <tt>TRUE</tt>, you need to call
--   <a>pixbufAnimationIterGetPixbuf</a> and update the display with the
--   new pixbuf.

-- | <i>Deprecated: (Since version 2.44)Use a different image loading
--   library for animatable assets</i>
pixbufAnimationIterAdvance :: (HasCallStack, MonadIO m, IsPixbufAnimationIter a) => a -> Maybe TimeVal -> m Bool

-- | Gets the number of milliseconds the current pixbuf should be
--   displayed, or -1 if the current pixbuf should be displayed forever.
--   
--   The <tt>g_timeout_add()</tt> function conveniently takes a timeout in
--   milliseconds, so you can use a timeout to schedule the next update.
--   
--   Note that some formats, like GIF, might clamp the timeout values in
--   the image file to avoid updates that are just too quick. The minimum
--   timeout for GIF images is currently 20 milliseconds.

-- | <i>Deprecated: (Since version 2.44)Use a different image loading
--   library for animatable assets</i>
pixbufAnimationIterGetDelayTime :: (HasCallStack, MonadIO m, IsPixbufAnimationIter a) => a -> m Int32

-- | Gets the current pixbuf which should be displayed.
--   
--   The pixbuf might not be the same size as the animation itself
--   (<a>pixbufAnimationGetWidth</a>, <a>pixbufAnimationGetHeight</a>).
--   
--   This pixbuf should be displayed for
--   <a>pixbufAnimationIterGetDelayTime</a> milliseconds.
--   
--   The caller of this function does not own a reference to the returned
--   pixbuf; the returned pixbuf will become invalid when the iterator
--   advances to the next frame, which may happen anytime you call
--   <a>pixbufAnimationIterAdvance</a>.
--   
--   Copy the pixbuf to keep it (don't just add a reference), as it may get
--   recycled as you advance the iterator.

-- | <i>Deprecated: (Since version 2.44)Use a different image loading
--   library for animatable assets</i>
pixbufAnimationIterGetPixbuf :: (HasCallStack, MonadIO m, IsPixbufAnimationIter a) => a -> m Pixbuf

-- | Used to determine how to respond to the area_updated signal on
--   <a>PixbufLoader</a> when loading an animation.
--   
--   The <tt>::area_updated</tt> signal is emitted for an area of the frame
--   currently streaming in to the loader. So if you're on the currently
--   loading frame, you will need to redraw the screen for the updated
--   area.

-- | <i>Deprecated: (Since version 2.44)Use a different image loading
--   library for animatable assets</i>
pixbufAnimationIterOnCurrentlyLoadingFrame :: (HasCallStack, MonadIO m, IsPixbufAnimationIter a) => a -> m Bool
instance GHC.Classes.Eq GI.GdkPixbuf.Objects.PixbufAnimationIter.PixbufAnimationIter
instance Data.GI.Base.BasicTypes.GObject GI.GdkPixbuf.Objects.PixbufAnimationIter.PixbufAnimationIter
instance Data.GI.Base.Overloading.HasParentTypes GI.GdkPixbuf.Objects.PixbufAnimationIter.PixbufAnimationIter
instance Data.GI.Base.GValue.IsGValue (GHC.Internal.Maybe.Maybe GI.GdkPixbuf.Objects.PixbufAnimationIter.PixbufAnimationIter)
instance (Data.GI.Base.BasicTypes.GObject o, Data.GI.Base.Overloading.IsDescendantOf GI.GdkPixbuf.Objects.PixbufAnimationIter.PixbufAnimationIter o) => GI.GdkPixbuf.Objects.PixbufAnimationIter.IsPixbufAnimationIter o
instance Data.GI.Base.BasicTypes.ManagedPtrNewtype GI.GdkPixbuf.Objects.PixbufAnimationIter.PixbufAnimationIter
instance Data.GI.Base.BasicTypes.TypedObject GI.GdkPixbuf.Objects.PixbufAnimationIter.PixbufAnimationIter


-- | An opaque object representing an animation.
--   
--   The GdkPixBuf library provides a simple mechanism to load and
--   represent animations. An animation is conceptually a series of frames
--   to be displayed over time.
--   
--   The animation may not be represented as a series of frames internally;
--   for example, it may be stored as a sprite and instructions for moving
--   the sprite around a background.
--   
--   To display an animation you don't need to understand its
--   representation, however; you just ask <tt>GdkPixbuf</tt> what should
--   be displayed at a given point in time.
module GI.GdkPixbuf.Objects.PixbufAnimation

-- | Memory-managed wrapper type.
newtype PixbufAnimation
PixbufAnimation :: ManagedPtr PixbufAnimation -> PixbufAnimation

-- | Type class for types which can be safely cast to
--   <a>PixbufAnimation</a>, for instance with <a>toPixbufAnimation</a>.
class (GObject o, IsDescendantOf PixbufAnimation o) => IsPixbufAnimation o

-- | Cast to <a>PixbufAnimation</a>, for types for which this is known to
--   be safe. For general casts, use <a>castTo</a>.
toPixbufAnimation :: (MonadIO m, IsPixbufAnimation o) => o -> m PixbufAnimation

-- | Queries the height of the bounding box of a pixbuf animation.

-- | <i>Deprecated: (Since version 2.44)Use a different image loading
--   library for animatable assets</i>
pixbufAnimationGetHeight :: (HasCallStack, MonadIO m, IsPixbufAnimation a) => a -> m Int32

-- | Get an iterator for displaying an animation.
--   
--   The iterator provides the frames that should be displayed at a given
--   time.
--   
--   <i><tt>startTime</tt></i> would normally come from
--   <a>getCurrentTime</a>, and marks the beginning of animation playback.
--   After creating an iterator, you should immediately display the pixbuf
--   returned by <a>pixbufAnimationIterGetPixbuf</a>. Then, you should
--   install a timeout (with <tt><i>g_timeout_add()</i></tt>) or by some
--   other mechanism ensure that you'll update the image after
--   <a>pixbufAnimationIterGetDelayTime</a> milliseconds. Each time the
--   image is updated, you should reinstall the timeout with the new,
--   possibly-changed delay time.
--   
--   As a shortcut, if <i><tt>startTime</tt></i> is <tt>NULL</tt>, the
--   result of <a>getCurrentTime</a> will be used automatically.
--   
--   To update the image (i.e. possibly change the result of
--   <a>pixbufAnimationIterGetPixbuf</a> to a new frame of the animation),
--   call <a>pixbufAnimationIterAdvance</a>.
--   
--   If you're using <a>PixbufLoader</a>, in addition to updating the image
--   after the delay time, you should also update it whenever you receive
--   the area_updated signal and
--   <a>pixbufAnimationIterOnCurrentlyLoadingFrame</a> returns
--   <tt>TRUE</tt>. In this case, the frame currently being fed into the
--   loader has received new data, so needs to be refreshed. The delay time
--   for a frame may also be modified after an area_updated signal, for
--   example if the delay time for a frame is encoded in the data after the
--   frame itself. So your timeout should be reinstalled after any
--   area_updated signal.
--   
--   A delay time of -1 is possible, indicating "infinite".

-- | <i>Deprecated: (Since version 2.44)Use a different image loading
--   library for animatable assets</i>
pixbufAnimationGetIter :: (HasCallStack, MonadIO m, IsPixbufAnimation a) => a -> Maybe TimeVal -> m PixbufAnimationIter

-- | Retrieves a static image for the animation.
--   
--   If an animation is really just a plain image (has only one frame),
--   this function returns that image.
--   
--   If the animation is an animation, this function returns a reasonable
--   image to use as a static unanimated image, which might be the first
--   frame, or something more sophisticated depending on the file format.
--   
--   If an animation hasn't loaded any frames yet, this function will
--   return <tt>NULL</tt>.

-- | <i>Deprecated: (Since version 2.44)Use a different image loading
--   library for animatable assets</i>
pixbufAnimationGetStaticImage :: (HasCallStack, MonadIO m, IsPixbufAnimation a) => a -> m Pixbuf

-- | Queries the width of the bounding box of a pixbuf animation.

-- | <i>Deprecated: (Since version 2.44)Use a different image loading
--   library for animatable assets</i>
pixbufAnimationGetWidth :: (HasCallStack, MonadIO m, IsPixbufAnimation a) => a -> m Int32

-- | Checks whether the animation is a static image.
--   
--   If you load a file with <a>pixbufAnimationNewFromFile</a> and it turns
--   out to be a plain, unanimated image, then this function will return
--   <tt>TRUE</tt>. Use <a>pixbufAnimationGetStaticImage</a> to retrieve
--   the image.

-- | <i>Deprecated: (Since version 2.44)Use a different image loading
--   library for animatable assets</i>
pixbufAnimationIsStaticImage :: (HasCallStack, MonadIO m, IsPixbufAnimation a) => a -> m Bool

-- | Creates a new animation by loading it from a file.
--   
--   The file format is detected automatically.
--   
--   If the file's format does not support multi-frame images, then an
--   animation with a single frame will be created.
--   
--   Possible errors are in the <tt>GDK_PIXBUF_ERROR</tt> and
--   <tt>G_FILE_ERROR</tt> domains.

-- | <i>Deprecated: (Since version 2.44)Use a different image loading
--   library for animatable assets</i>
pixbufAnimationNewFromFile :: (HasCallStack, MonadIO m) => [Char] -> m (Maybe PixbufAnimation)

-- | Creates a new pixbuf animation by loading an image from an resource.
--   
--   The file format is detected automatically. If <tt>NULL</tt> is
--   returned, then <i><tt>error</tt></i> will be set.
--   
--   <i>Since: 2.28</i>

-- | <i>Deprecated: (Since version 2.44)Use a different image loading
--   library for animatable assets</i>
pixbufAnimationNewFromResource :: (HasCallStack, MonadIO m) => Text -> m (Maybe PixbufAnimation)

-- | Creates a new animation by loading it from an input stream.
--   
--   The file format is detected automatically.
--   
--   If <tt>NULL</tt> is returned, then <i><tt>error</tt></i> will be set.
--   
--   The <i><tt>cancellable</tt></i> can be used to abort the operation
--   from another thread. If the operation was cancelled, the error
--   <tt>G_IO_ERROR_CANCELLED</tt> will be returned. Other possible errors
--   are in the <tt>GDK_PIXBUF_ERROR</tt> and <tt>G_IO_ERROR</tt> domains.
--   
--   The stream is not closed.
--   
--   <i>Since: 2.28</i>

-- | <i>Deprecated: (Since version 2.44)Use a different image loading
--   library for animatable assets</i>
pixbufAnimationNewFromStream :: (HasCallStack, MonadIO m, IsInputStream a, IsCancellable b) => a -> Maybe b -> m (Maybe PixbufAnimation)

-- | Creates a new animation by asynchronously loading an image from an
--   input stream.
--   
--   For more details see <a>pixbufNewFromStream</a>, which is the
--   synchronous version of this function.
--   
--   When the operation is finished, <tt>callback</tt> will be called in
--   the main thread. You can then call
--   <a>pixbufAnimationNewFromStreamFinish</a> to get the result of the
--   operation.
--   
--   <i>Since: 2.28</i>

-- | <i>Deprecated: (Since version 2.44)Use a different image loading
--   library for animatable assets</i>
pixbufAnimationNewFromStreamAsync :: (HasCallStack, MonadIO m, IsInputStream a, IsCancellable b) => a -> Maybe b -> Maybe AsyncReadyCallback -> m ()

-- | Finishes an asynchronous pixbuf animation creation operation started
--   with <a>pixbufAnimationNewFromStreamAsync</a>.
--   
--   <i>Since: 2.28</i>

-- | <i>Deprecated: (Since version 2.44)Use a different image loading
--   library for animatable assets</i>
pixbufAnimationNewFromStreamFinish :: (HasCallStack, MonadIO m, IsAsyncResult a) => a -> m (Maybe PixbufAnimation)
instance GHC.Classes.Eq GI.GdkPixbuf.Objects.PixbufAnimation.PixbufAnimation
instance Data.GI.Base.BasicTypes.GObject GI.GdkPixbuf.Objects.PixbufAnimation.PixbufAnimation
instance Data.GI.Base.Overloading.HasParentTypes GI.GdkPixbuf.Objects.PixbufAnimation.PixbufAnimation
instance Data.GI.Base.GValue.IsGValue (GHC.Internal.Maybe.Maybe GI.GdkPixbuf.Objects.PixbufAnimation.PixbufAnimation)
instance (Data.GI.Base.BasicTypes.GObject o, Data.GI.Base.Overloading.IsDescendantOf GI.GdkPixbuf.Objects.PixbufAnimation.PixbufAnimation o) => GI.GdkPixbuf.Objects.PixbufAnimation.IsPixbufAnimation o
instance Data.GI.Base.BasicTypes.ManagedPtrNewtype GI.GdkPixbuf.Objects.PixbufAnimation.PixbufAnimation
instance Data.GI.Base.BasicTypes.TypedObject GI.GdkPixbuf.Objects.PixbufAnimation.PixbufAnimation


-- | A pixel buffer.
--   
--   <tt>GdkPixbuf</tt> contains information about an image's pixel data,
--   its color space, bits per sample, width and height, and the rowstride
--   (the number of bytes between the start of one row and the start of the
--   next).
--   
--   <h2>Creating new <tt>GdkPixbuf</tt></h2>
--   
--   The most basic way to create a pixbuf is to wrap an existing pixel
--   buffer with a <a>Pixbuf</a> instance. You can use the
--   [<tt>ctor@GdkPixbuf.Pixbuf.new_from_data</tt>] function to do this.
--   
--   Every time you create a new <tt>GdkPixbuf</tt> instance for some data,
--   you will need to specify the destroy notification function that will
--   be called when the data buffer needs to be freed; this will happen
--   when a <tt>GdkPixbuf</tt> is finalized by the reference counting
--   functions. If you have a chunk of static data compiled into your
--   application, you can pass in <tt>NULL</tt> as the destroy notification
--   function so that the data will not be freed.
--   
--   The [<tt>ctor@GdkPixbuf.Pixbuf.new</tt>] constructor function can be
--   used as a convenience to create a pixbuf with an empty buffer; this is
--   equivalent to allocating a data buffer using <tt>malloc()</tt> and
--   then wrapping it with <tt>gdk_pixbuf_new_from_data()</tt>. The
--   <tt>gdk_pixbuf_new()</tt> function will compute an optimal rowstride
--   so that rendering can be performed with an efficient algorithm.
--   
--   You can also copy an existing pixbuf with the
--   [method<i><tt>pixbuf</tt></i>.copy] function. This is not the same as
--   just acquiring a reference to the old pixbuf instance: the copy
--   function will actually duplicate the pixel data in memory and create a
--   new [class<i><tt>pixbuf</tt></i>] instance for it.
--   
--   <h2>Reference counting</h2>
--   
--   <tt>GdkPixbuf</tt> structures are reference counted. This means that
--   an application can share a single pixbuf among many parts of the code.
--   When a piece of the program needs to use a pixbuf, it should acquire a
--   reference to it by calling <tt>g_object_ref()</tt>; when it no longer
--   needs the pixbuf, it should release the reference it acquired by
--   calling <tt>g_object_unref()</tt>. The resources associated with a
--   <tt>GdkPixbuf</tt> will be freed when its reference count drops to
--   zero. Newly-created <tt>GdkPixbuf</tt> instances start with a
--   reference count of one.
--   
--   <h2>Image Data</h2>
--   
--   Image data in a pixbuf is stored in memory in an uncompressed, packed
--   format. Rows in the image are stored top to bottom, and in each row
--   pixels are stored from left to right.
--   
--   There may be padding at the end of a row.
--   
--   The "rowstride" value of a pixbuf, as returned by
--   [<tt>method@GdkPixbuf.Pixbuf.get_rowstride</tt>], indicates the number
--   of bytes between rows.
--   
--   <b>NOTE</b>: If you are copying raw pixbuf data with <tt>memcpy()</tt>
--   note that the last row in the pixbuf may not be as wide as the full
--   rowstride, but rather just as wide as the pixel data needs to be; that
--   is: it is unsafe to do <tt>memcpy (dest, pixels, rowstride *
--   height)</tt> to copy a whole pixbuf. Use <a>pixbufCopy</a> instead, or
--   compute the width in bytes of the last row as:
--   
--   <h3><i>c code</i></h3>
--   
--   <pre>
--   last_row = width * ((n_channels * bits_per_sample + 7) / 8);
--   </pre>
--   
--   The same rule applies when iterating over each row of a
--   <tt>GdkPixbuf</tt> pixels array.
--   
--   The following code illustrates a simple <tt>put_pixel()</tt> function
--   for RGB pixbufs with 8 bits per channel with an alpha channel.
--   
--   <h3><i>c code</i></h3>
--   
--   <pre>
--   static void
--   put_pixel (GdkPixbuf *pixbuf,
--              int x,
--   	   int y,
--   	   guchar red,
--   	   guchar green,
--   	   guchar blue,
--   	   guchar alpha)
--   {
--     int n_channels = gdk_pixbuf_get_n_channels (pixbuf);
--   
--     // Ensure that the pixbuf is valid
--     g_assert (gdk_pixbuf_get_colorspace (pixbuf) == GDK_COLORSPACE_RGB);
--     g_assert (gdk_pixbuf_get_bits_per_sample (pixbuf) == 8);
--     g_assert (gdk_pixbuf_get_has_alpha (pixbuf));
--     g_assert (n_channels == 4);
--   
--     int width = gdk_pixbuf_get_width (pixbuf);
--     int height = gdk_pixbuf_get_height (pixbuf);
--   
--     // Ensure that the coordinates are in a valid range
--     g_assert (x &gt;= 0 &amp;&amp; x &lt; width);
--     g_assert (y &gt;= 0 &amp;&amp; y &lt; height);
--   
--     int rowstride = gdk_pixbuf_get_rowstride (pixbuf);
--   
--     // The pixel buffer in the GdkPixbuf instance
--     guchar *pixels = gdk_pixbuf_get_pixels (pixbuf);
--   
--     // The pixel we wish to modify
--     guchar *p = pixels + y * rowstride + x * n_channels;
--     p[0] = red;
--     p[1] = green;
--     p[2] = blue;
--     p[3] = alpha;
--   }
--   </pre>
--   
--   <h2>Loading images</h2>
--   
--   The <tt>GdkPixBuf</tt> class provides a simple mechanism for loading
--   an image from a file in synchronous and asynchronous fashion.
--   
--   For GUI applications, it is recommended to use the asynchronous stream
--   API to avoid blocking the control flow of the application.
--   
--   Additionally, <tt>GdkPixbuf</tt> provides the
--   [class<i><tt>gdkPixbuf</tt></i>.PixbufLoader@] API for progressive
--   image loading.
--   
--   ## Saving images
--   
--   The <tt>GdkPixbuf</tt> class provides methods for saving image data in
--   a number of file formats. The formatted data can be written to a file
--   or to a memory buffer. @GdkPixbuf` can also call a user-defined
--   callback on the data, which allows to e.g. write the image to a socket
--   or store it in a database.
module GI.GdkPixbuf.Objects.Pixbuf

-- | Memory-managed wrapper type.
newtype Pixbuf
Pixbuf :: ManagedPtr Pixbuf -> Pixbuf

-- | Type class for types which can be safely cast to <a>Pixbuf</a>, for
--   instance with <a>toPixbuf</a>.
class (GObject o, IsDescendantOf Pixbuf o) => IsPixbuf o

-- | Cast to <a>Pixbuf</a>, for types for which this is known to be safe.
--   For general casts, use <a>castTo</a>.
toPixbuf :: (MonadIO m, IsPixbuf o) => o -> m Pixbuf

-- | Takes an existing pixbuf and adds an alpha channel to it.
--   
--   If the existing pixbuf already had an alpha channel, the channel
--   values are copied from the original; otherwise, the alpha channel is
--   initialized to 255 (full opacity).
--   
--   If <tt>substitute_color</tt> is <tt>TRUE</tt>, then the color
--   specified by the (<tt>r</tt>, <tt>g</tt>, <tt>b</tt>) arguments will
--   be assigned zero opacity. That is, if you pass <tt>(255, 255,
--   255)</tt> for the substitute color, all white pixels will become fully
--   transparent.
--   
--   If <tt>substitute_color</tt> is <tt>FALSE</tt>, then the (<tt>r</tt>,
--   <tt>g</tt>, <tt>b</tt>) arguments will be ignored.
pixbufAddAlpha :: (HasCallStack, MonadIO m, IsPixbuf a) => a -> Bool -> Word8 -> Word8 -> Word8 -> m (Maybe Pixbuf)

-- | Takes an existing pixbuf and checks for the presence of an associated
--   "orientation" option.
--   
--   The orientation option may be provided by the JPEG loader (which reads
--   the exif orientation tag) or the TIFF loader (which reads the TIFF
--   orientation tag, and compensates it for the partial transforms
--   performed by libtiff).
--   
--   If an orientation option/tag is present, the appropriate transform
--   will be performed so that the pixbuf is oriented correctly.
--   
--   <i>Since: 2.12</i>
pixbufApplyEmbeddedOrientation :: (HasCallStack, MonadIO m, IsPixbuf a) => a -> m (Maybe Pixbuf)

-- | Calculates the rowstride that an image created with those values would
--   have.
--   
--   This function is useful for front-ends and backends that want to check
--   image values without needing to create a <tt>GdkPixbuf</tt>.
--   
--   <i>Since: 2.36.8</i>
pixbufCalculateRowstride :: (HasCallStack, MonadIO m) => Colorspace -> Bool -> Int32 -> Int32 -> Int32 -> m Int32

-- | Creates a transformation of the source image <i><tt>src</tt></i> by
--   scaling by <i><tt>scaleX</tt></i> and <i><tt>scaleY</tt></i> then
--   translating by <i><tt>offsetX</tt></i> and <i><tt>offsetY</tt></i>.
--   
--   This gives an image in the coordinates of the destination pixbuf. The
--   rectangle (<i><tt>destX</tt></i>, <i><tt>destY</tt></i>,
--   <i><tt>destWidth</tt></i>, <i><tt>destHeight</tt></i>) is then alpha
--   blended onto the corresponding rectangle of the original destination
--   image.
--   
--   When the destination rectangle contains parts not in the source image,
--   the data at the edges of the source image is replicated to infinity.
--   
pixbufComposite :: (HasCallStack, MonadIO m, IsPixbuf a, IsPixbuf b) => a -> b -> Int32 -> Int32 -> Int32 -> Int32 -> Double -> Double -> Double -> Double -> InterpType -> Int32 -> m ()

-- | Creates a transformation of the source image <i><tt>src</tt></i> by
--   scaling by <i><tt>scaleX</tt></i> and <i><tt>scaleY</tt></i> then
--   translating by <i><tt>offsetX</tt></i> and <i><tt>offsetY</tt></i>,
--   then alpha blends the rectangle (<i><tt>destX</tt></i>
--   ,<i><tt>destY</tt></i>, <i><tt>destWidth</tt></i>,
--   <i><tt>destHeight</tt></i>) of the resulting image with a checkboard
--   of the colors <i><tt>color1</tt></i> and <i><tt>color2</tt></i> and
--   renders it onto the destination image.
--   
--   If the source image has no alpha channel, and
--   <i><tt>overallAlpha</tt></i> is 255, a fast path is used which omits
--   the alpha blending and just performs the scaling.
--   
--   See <a>pixbufCompositeColorSimple</a> for a simpler variant of this
--   function suitable for many tasks.
pixbufCompositeColor :: (HasCallStack, MonadIO m, IsPixbuf a, IsPixbuf b) => a -> b -> Int32 -> Int32 -> Int32 -> Int32 -> Double -> Double -> Double -> Double -> InterpType -> Int32 -> Int32 -> Int32 -> Int32 -> Word32 -> Word32 -> m ()

-- | Creates a new pixbuf by scaling <tt>src</tt> to <tt>dest_width</tt> x
--   <tt>dest_height</tt> and alpha blending the result with a checkboard
--   of colors <tt>color1</tt> and <tt>color2</tt>.
pixbufCompositeColorSimple :: (HasCallStack, MonadIO m, IsPixbuf a) => a -> Int32 -> Int32 -> InterpType -> Int32 -> Int32 -> Word32 -> Word32 -> m (Maybe Pixbuf)

-- | Creates a new <tt>GdkPixbuf</tt> with a copy of the information in the
--   specified <tt>pixbuf</tt>.
--   
--   Note that this does not copy the options set on the original
--   <tt>GdkPixbuf</tt>, use <a>pixbufCopyOptions</a> for this.
pixbufCopy :: (HasCallStack, MonadIO m, IsPixbuf a) => a -> m (Maybe Pixbuf)

-- | Copies a rectangular area from <tt>src_pixbuf</tt> to
--   <tt>dest_pixbuf</tt>.
--   
--   Conversion of pixbuf formats is done automatically.
--   
--   If the source rectangle overlaps the destination rectangle on the same
--   pixbuf, it will be overwritten during the copy operation. Therefore,
--   you can not use this function to scroll a pixbuf.
pixbufCopyArea :: (HasCallStack, MonadIO m, IsPixbuf a, IsPixbuf b) => a -> Int32 -> Int32 -> Int32 -> Int32 -> b -> Int32 -> Int32 -> m ()

-- | Copies the key/value pair options attached to a <tt>GdkPixbuf</tt> to
--   another <tt>GdkPixbuf</tt>.
--   
--   This is useful to keep original metadata after having manipulated a
--   file. However be careful to remove metadata which you've already
--   applied, such as the "orientation" option after rotating the image.
--   
--   <i>Since: 2.36</i>
pixbufCopyOptions :: (HasCallStack, MonadIO m, IsPixbuf a, IsPixbuf b) => a -> b -> m Bool

-- | Clears a pixbuf to the given RGBA value, converting the RGBA value
--   into the pixbuf's pixel format.
--   
--   The alpha component will be ignored if the pixbuf doesn't have an
--   alpha channel.
pixbufFill :: (HasCallStack, MonadIO m, IsPixbuf a) => a -> Word32 -> m ()

-- | Flips a pixbuf horizontally or vertically and returns the result in a
--   new pixbuf.
--   
--   <i>Since: 2.6</i>
pixbufFlip :: (HasCallStack, MonadIO m, IsPixbuf a) => a -> Bool -> m (Maybe Pixbuf)

-- | Queries the number of bits per color sample in a pixbuf.
pixbufGetBitsPerSample :: (HasCallStack, MonadIO m, IsPixbuf a) => a -> m Int32

-- | Returns the length of the pixel data, in bytes.
--   
--   <i>Since: 2.26</i>
pixbufGetByteLength :: (HasCallStack, MonadIO m, IsPixbuf a) => a -> m CSize

-- | Queries the color space of a pixbuf.
pixbufGetColorspace :: (HasCallStack, MonadIO m, IsPixbuf a) => a -> m Colorspace

-- | Parses an image file far enough to determine its format and size.
--   
--   <i>Since: 2.4</i>
pixbufGetFileInfo :: (HasCallStack, MonadIO m) => [Char] -> m (Maybe PixbufFormat, Int32, Int32)

-- | Asynchronously parses an image file far enough to determine its format
--   and size.
--   
--   For more details see <a>pixbufGetFileInfo</a>, which is the
--   synchronous version of this function.
--   
--   When the operation is finished, <i><tt>callback</tt></i> will be
--   called in the main thread. You can then call
--   <a>pixbufGetFileInfoFinish</a> to get the result of the operation.
--   
--   <i>Since: 2.32</i>
pixbufGetFileInfoAsync :: (HasCallStack, MonadIO m, IsCancellable a) => [Char] -> Maybe a -> Maybe AsyncReadyCallback -> m ()

-- | Finishes an asynchronous pixbuf parsing operation started with
--   <a>pixbufGetFileInfoAsync</a>.
--   
--   <i>Since: 2.32</i>
pixbufGetFileInfoFinish :: (HasCallStack, MonadIO m, IsAsyncResult a) => a -> m (Maybe PixbufFormat, Int32, Int32)

-- | Obtains the available information about the image formats supported by
--   GdkPixbuf.
--   
--   <i>Since: 2.2</i>
pixbufGetFormats :: (HasCallStack, MonadIO m) => m [PixbufFormat]

-- | Queries whether a pixbuf has an alpha channel (opacity information).
pixbufGetHasAlpha :: (HasCallStack, MonadIO m, IsPixbuf a) => a -> m Bool

-- | Queries the height of a pixbuf.
pixbufGetHeight :: (HasCallStack, MonadIO m, IsPixbuf a) => a -> m Int32

-- | Queries the number of channels of a pixbuf.
pixbufGetNChannels :: (HasCallStack, MonadIO m, IsPixbuf a) => a -> m Int32

-- | Looks up <i><tt>key</tt></i> in the list of options that may have been
--   attached to the <i><tt>pixbuf</tt></i> when it was loaded, or that may
--   have been attached by another function using <a>pixbufSetOption</a>.
--   
--   For instance, the ANI loader provides "Title" and "Artist" options.
--   The ICO, XBM, and XPM loaders provide "x_hot" and "y_hot" hot-spot
--   options for cursor definitions. The PNG loader provides the tEXt
--   ancillary chunk key/value pairs as options. Since 2.12, the TIFF and
--   JPEG loaders return an "orientation" option string that corresponds to
--   the embedded TIFF/Exif orientation tag (if present). Since 2.32, the
--   TIFF loader sets the "multipage" option string to "yes" when a
--   multi-page TIFF is loaded. Since 2.32 the JPEG and PNG loaders set
--   "x-dpi" and "y-dpi" if the file contains image density information in
--   dots per inch. Since 2.36.6, the JPEG loader sets the "comment" option
--   with the comment EXIF tag.
pixbufGetOption :: (HasCallStack, MonadIO m, IsPixbuf a) => a -> Text -> m (Maybe Text)

-- | Queries a pointer to the pixel data of a pixbuf.
--   
--   This function will cause an implicit copy of the pixbuf data if the
--   pixbuf was created from read-only data.
--   
--   Please see the section on <a>image data</a> for information about how
--   the pixel data is stored in memory.
--   
--   <i>Since: 2.26</i>
pixbufGetPixels :: (HasCallStack, MonadIO m, IsPixbuf a) => a -> m ByteString

-- | Queries the rowstride of a pixbuf, which is the number of bytes
--   between the start of a row and the start of the next row.
pixbufGetRowstride :: (HasCallStack, MonadIO m, IsPixbuf a) => a -> m Int32

-- | Queries the width of a pixbuf.
pixbufGetWidth :: (HasCallStack, MonadIO m, IsPixbuf a) => a -> m Int32

-- | Initalizes the gdk-pixbuf loader modules referenced by the
--   <tt>loaders.cache</tt> file present inside that directory.
--   
--   This is to be used by applications that want to ship certain loaders
--   in a different location from the system ones.
--   
--   This is needed when the OS or runtime ships a minimal number of
--   loaders so as to reduce the potential attack surface of carefully
--   crafted image files, especially for uncommon file types. Applications
--   that require broader image file types coverage, such as image viewers,
--   would be expected to ship the gdk-pixbuf modules in a separate
--   location, bundled with the application in a separate directory from
--   the OS or runtime- provided modules.
--   
--   <i>Since: 2.40</i>
pixbufInitModules :: (HasCallStack, MonadIO m) => Text -> m ()

-- | Creates a new <tt>GdkPixbuf</tt> structure and allocates a buffer for
--   it.
--   
--   If the allocation of the buffer failed, this function will return
--   <tt>NULL</tt>.
--   
--   The buffer has an optimal rowstride. Note that the buffer is not
--   cleared; you will have to fill it completely yourself.
pixbufNew :: (HasCallStack, MonadIO m) => Colorspace -> Bool -> Int32 -> Int32 -> Int32 -> m (Maybe Pixbuf)

-- | Creates a new <a>Pixbuf</a> out of in-memory readonly image data.
--   
--   Currently only RGB images with 8 bits per sample are supported.
--   
--   This is the <tt>GBytes</tt> variant of <a>pixbufNewFromData</a>,
--   useful for language bindings.
--   
--   <i>Since: 2.32</i>
pixbufNewFromBytes :: (HasCallStack, MonadIO m) => Bytes -> Colorspace -> Bool -> Int32 -> Int32 -> Int32 -> Int32 -> m Pixbuf

-- | Creates a new <a>Pixbuf</a> out of in-memory image data.
--   
--   Currently only RGB images with 8 bits per sample are supported.
--   
--   Since you are providing a pre-allocated pixel buffer, you must also
--   specify a way to free that data. This is done with a function of type
--   <tt>GdkPixbufDestroyNotify</tt>. When a pixbuf created with is
--   finalized, your destroy notification function will be called, and it
--   is its responsibility to free the pixel array.
--   
--   See also: <a>pixbufNewFromBytes</a>
pixbufNewFromData :: (HasCallStack, MonadIO m) => Ptr Word8 -> Colorspace -> Bool -> Int32 -> Int32 -> Int32 -> Int32 -> Maybe PixbufDestroyNotify -> m Pixbuf

-- | Creates a new pixbuf by loading an image from a file.
--   
--   The file format is detected automatically.
--   
--   If <tt>NULL</tt> is returned, then <i><tt>error</tt></i> will be set.
--   Possible errors are:
--   
--   <ul>
--   <li>the file could not be opened</li>
--   <li>there is no loader for the file's format</li>
--   <li>there is not enough memory to allocate the image buffer</li>
--   <li>the image buffer contains invalid data</li>
--   </ul>
--   
--   The error domains are <tt>GDK_PIXBUF_ERROR</tt> and
--   <tt>G_FILE_ERROR</tt>.
pixbufNewFromFile :: (HasCallStack, MonadIO m) => [Char] -> m (Maybe Pixbuf)

-- | Creates a new pixbuf by loading an image from a file.
--   
--   The file format is detected automatically.
--   
--   If <tt>NULL</tt> is returned, then <i><tt>error</tt></i> will be set.
--   Possible errors are:
--   
--   <ul>
--   <li>the file could not be opened</li>
--   <li>there is no loader for the file's format</li>
--   <li>there is not enough memory to allocate the image buffer</li>
--   <li>the image buffer contains invalid data</li>
--   </ul>
--   
--   The error domains are <tt>GDK_PIXBUF_ERROR</tt> and
--   <tt>G_FILE_ERROR</tt>.
--   
--   The image will be scaled to fit in the requested size, optionally
--   preserving the image's aspect ratio.
--   
--   When preserving the aspect ratio, a <tt>width</tt> of -1 will cause
--   the image to be scaled to the exact given height, and a
--   <tt>height</tt> of -1 will cause the image to be scaled to the exact
--   given width. When not preserving aspect ratio, a <tt>width</tt> or
--   <tt>height</tt> of -1 means to not scale the image at all in that
--   dimension. Negative values for <tt>width</tt> and <tt>height</tt> are
--   allowed since 2.8.
--   
--   <i>Since: 2.6</i>
pixbufNewFromFileAtScale :: (HasCallStack, MonadIO m) => [Char] -> Int32 -> Int32 -> Bool -> m (Maybe Pixbuf)

-- | Creates a new pixbuf by loading an image from a file.
--   
--   The file format is detected automatically.
--   
--   If <tt>NULL</tt> is returned, then <i><tt>error</tt></i> will be set.
--   Possible errors are:
--   
--   <ul>
--   <li>the file could not be opened</li>
--   <li>there is no loader for the file's format</li>
--   <li>there is not enough memory to allocate the image buffer</li>
--   <li>the image buffer contains invalid data</li>
--   </ul>
--   
--   The error domains are <tt>GDK_PIXBUF_ERROR</tt> and
--   <tt>G_FILE_ERROR</tt>.
--   
--   The image will be scaled to fit in the requested size, preserving the
--   image's aspect ratio. Note that the returned pixbuf may be smaller
--   than <tt>width</tt> x <tt>height</tt>, if the aspect ratio requires
--   it. To load and image at the requested size, regardless of aspect
--   ratio, use <a>pixbufNewFromFileAtScale</a>.
--   
--   <i>Since: 2.4</i>
pixbufNewFromFileAtSize :: (HasCallStack, MonadIO m) => [Char] -> Int32 -> Int32 -> m (Maybe Pixbuf)

-- | Creates a <tt>GdkPixbuf</tt> from a flat representation that is
--   suitable for storing as inline data in a program.
--   
--   This is useful if you want to ship a program with images, but don't
--   want to depend on any external files.
--   
--   GdkPixbuf ships with a program called <tt>gdk-pixbuf-csource</tt>,
--   which allows for conversion of <tt>GdkPixbuf</tt>s into such a inline
--   representation.
--   
--   In almost all cases, you should pass the <tt>--raw</tt> option to
--   <tt>gdk-pixbuf-csource</tt>. A sample invocation would be:
--   
--   <pre>
--   gdk-pixbuf-csource --raw --name=myimage_inline myimage.png
--   </pre>
--   
--   For the typical case where the inline pixbuf is read-only static data,
--   you don't need to copy the pixel data unless you intend to write to
--   it, so you can pass <tt>FALSE</tt> for <tt>copy_pixels</tt>. If you
--   pass <tt>--rle</tt> to <tt>gdk-pixbuf-csource</tt>, a copy will be
--   made even if <tt>copy_pixels</tt> is <tt>FALSE</tt>, so using this
--   option is generally a bad idea.
--   
--   If you create a pixbuf from const inline data compiled into your
--   program, it's probably safe to ignore errors and disable length
--   checks, since things will always succeed:
--   
--   <h3><i>c code</i></h3>
--   
--   <pre>
--   pixbuf = gdk_pixbuf_new_from_inline (-1, myimage_inline, FALSE, NULL);
--   </pre>
--   
--   For non-const inline data, you could get out of memory. For untrusted
--   inline data located at runtime, you could have corrupt inline data in
--   addition.

-- | <i>Deprecated: (Since version 2.32)Use <tt>GResource</tt> instead.</i>
pixbufNewFromInline :: (HasCallStack, MonadIO m) => ByteString -> Bool -> m Pixbuf

-- | Creates a new pixbuf by loading an image from an resource.
--   
--   The file format is detected automatically. If <tt>NULL</tt> is
--   returned, then <i><tt>error</tt></i> will be set.
--   
--   <i>Since: 2.26</i>
pixbufNewFromResource :: (HasCallStack, MonadIO m) => Text -> m (Maybe Pixbuf)

-- | Creates a new pixbuf by loading an image from an resource.
--   
--   The file format is detected automatically. If <tt>NULL</tt> is
--   returned, then <i><tt>error</tt></i> will be set.
--   
--   The image will be scaled to fit in the requested size, optionally
--   preserving the image's aspect ratio. When preserving the aspect ratio,
--   a <i><tt>width</tt></i> of -1 will cause the image to be scaled to the
--   exact given height, and a <i><tt>height</tt></i> of -1 will cause the
--   image to be scaled to the exact given width. When not preserving
--   aspect ratio, a <i><tt>width</tt></i> or <i><tt>height</tt></i> of -1
--   means to not scale the image at all in that dimension.
--   
--   The stream is not closed.
--   
--   <i>Since: 2.26</i>
pixbufNewFromResourceAtScale :: (HasCallStack, MonadIO m) => Text -> Int32 -> Int32 -> Bool -> m (Maybe Pixbuf)

-- | Creates a new pixbuf by loading an image from an input stream.
--   
--   The file format is detected automatically.
--   
--   If <tt>NULL</tt> is returned, then <tt>error</tt> will be set.
--   
--   The <tt>cancellable</tt> can be used to abort the operation from
--   another thread. If the operation was cancelled, the error
--   <tt>G_IO_ERROR_CANCELLED</tt> will be returned. Other possible errors
--   are in the <tt>GDK_PIXBUF_ERROR</tt> and <tt>G_IO_ERROR</tt> domains.
--   
--   The stream is not closed.
--   
--   <i>Since: 2.14</i>
pixbufNewFromStream :: (HasCallStack, MonadIO m, IsInputStream a, IsCancellable b) => a -> Maybe b -> m (Maybe Pixbuf)

-- | Creates a new pixbuf by asynchronously loading an image from an input
--   stream.
--   
--   For more details see <a>pixbufNewFromStream</a>, which is the
--   synchronous version of this function.
--   
--   When the operation is finished, <i><tt>callback</tt></i> will be
--   called in the main thread. You can then call
--   <a>pixbufNewFromStreamFinish</a> to get the result of the operation.
--   
--   <i>Since: 2.24</i>
pixbufNewFromStreamAsync :: (HasCallStack, MonadIO m, IsInputStream a, IsCancellable b) => a -> Maybe b -> Maybe AsyncReadyCallback -> m ()

-- | Creates a new pixbuf by loading an image from an input stream.
--   
--   The file format is detected automatically. If <tt>NULL</tt> is
--   returned, then <i><tt>error</tt></i> will be set. The
--   <i><tt>cancellable</tt></i> can be used to abort the operation from
--   another thread. If the operation was cancelled, the error
--   <tt>G_IO_ERROR_CANCELLED</tt> will be returned. Other possible errors
--   are in the <tt>GDK_PIXBUF_ERROR</tt> and <tt>G_IO_ERROR</tt> domains.
--   
--   The image will be scaled to fit in the requested size, optionally
--   preserving the image's aspect ratio.
--   
--   When preserving the aspect ratio, a <tt>width</tt> of -1 will cause
--   the image to be scaled to the exact given height, and a
--   <tt>height</tt> of -1 will cause the image to be scaled to the exact
--   given width. If both <tt>width</tt> and <tt>height</tt> are given,
--   this function will behave as if the smaller of the two values is
--   passed as -1.
--   
--   When not preserving aspect ratio, a <tt>width</tt> or <tt>height</tt>
--   of -1 means to not scale the image at all in that dimension.
--   
--   The stream is not closed.
--   
--   <i>Since: 2.14</i>
pixbufNewFromStreamAtScale :: (HasCallStack, MonadIO m, IsInputStream a, IsCancellable b) => a -> Int32 -> Int32 -> Bool -> Maybe b -> m (Maybe Pixbuf)

-- | Creates a new pixbuf by asynchronously loading an image from an input
--   stream.
--   
--   For more details see <a>pixbufNewFromStreamAtScale</a>, which is the
--   synchronous version of this function.
--   
--   When the operation is finished, <i><tt>callback</tt></i> will be
--   called in the main thread. You can then call
--   <a>pixbufNewFromStreamFinish</a> to get the result of the operation.
--   
--   <i>Since: 2.24</i>
pixbufNewFromStreamAtScaleAsync :: (HasCallStack, MonadIO m, IsInputStream a, IsCancellable b) => a -> Int32 -> Int32 -> Bool -> Maybe b -> Maybe AsyncReadyCallback -> m ()

-- | Finishes an asynchronous pixbuf creation operation started with
--   <a>pixbufNewFromStreamAsync</a>.
--   
--   <i>Since: 2.24</i>
pixbufNewFromStreamFinish :: (HasCallStack, MonadIO m, IsAsyncResult a) => a -> m (Maybe Pixbuf)

-- | Creates a new pixbuf by parsing XPM data in memory.
--   
--   This data is commonly the result of including an XPM file into a
--   program's C source.

-- | <i>Deprecated: (Since version 2.44)Use <a>pixbufNewFromStream</a>
--   witha <a>MemoryInputStream</a>, making sure to handle errors incase
--   the XPM format loader is not available</i>
pixbufNewFromXpmData :: (HasCallStack, MonadIO m) => [Text] -> m (Maybe Pixbuf)

-- | Creates a new pixbuf which represents a sub-region of
--   <tt>src_pixbuf</tt>.
--   
--   The new pixbuf shares its pixels with the original pixbuf, so writing
--   to one affects both. The new pixbuf holds a reference to
--   <tt>src_pixbuf</tt>, so <tt>src_pixbuf</tt> will not be finalized
--   until the new pixbuf is finalized.
--   
--   Note that if <tt>src_pixbuf</tt> is read-only, this function will
--   force it to be mutable.
pixbufNewSubpixbuf :: (HasCallStack, MonadIO m, IsPixbuf a) => a -> Int32 -> Int32 -> Int32 -> Int32 -> m Pixbuf

-- | Provides a <a>Bytes</a> buffer containing the raw pixel data; the data
--   must not be modified.
--   
--   This function allows skipping the implicit copy that must be made if
--   <tt><i>gdk_pixbuf_get_pixels()</i></tt> is called on a read-only
--   pixbuf.
--   
--   <i>Since: 2.32</i>
pixbufReadPixelBytes :: (HasCallStack, MonadIO m, IsPixbuf a) => a -> m Bytes

-- | Provides a read-only pointer to the raw pixel data.
--   
--   This function allows skipping the implicit copy that must be made if
--   <tt><i>gdk_pixbuf_get_pixels()</i></tt> is called on a read-only
--   pixbuf.
--   
--   <i>Since: 2.32</i>
pixbufReadPixels :: (HasCallStack, MonadIO m, IsPixbuf a) => a -> m Word8

-- | Removes the key/value pair option attached to a <tt>GdkPixbuf</tt>.
--   
--   <i>Since: 2.36</i>
pixbufRemoveOption :: (HasCallStack, MonadIO m, IsPixbuf a) => a -> Text -> m Bool

-- | Rotates a pixbuf by a multiple of 90 degrees, and returns the result
--   in a new pixbuf.
--   
--   If <tt>angle</tt> is 0, this function will return a copy of
--   <tt>src</tt>.
--   
--   <i>Since: 2.6</i>
pixbufRotateSimple :: (HasCallStack, MonadIO m, IsPixbuf a) => a -> PixbufRotation -> m (Maybe Pixbuf)

-- | Modifies saturation and optionally pixelates <tt>src</tt>, placing the
--   result in <tt>dest</tt>.
--   
--   The <tt>src</tt> and <tt>dest</tt> pixbufs must have the same image
--   format, size, and rowstride.
--   
--   The <tt>src</tt> and <tt>dest</tt> arguments may be the same pixbuf
--   with no ill effects.
--   
--   If <tt>saturation</tt> is 1.0 then saturation is not changed. If it's
--   less than 1.0, saturation is reduced (the image turns toward
--   grayscale); if greater than 1.0, saturation is increased (the image
--   gets more vivid colors).
--   
--   If <tt>pixelate</tt> is <tt>TRUE</tt>, then pixels are faded in a
--   checkerboard pattern to create a pixelated image.
pixbufSaturateAndPixelate :: (HasCallStack, MonadIO m, IsPixbuf a, IsPixbuf b) => a -> b -> Float -> Bool -> m ()

-- | Vector version of <tt>gdk_pixbuf_save_to_buffer()</tt>.
--   
--   Saves pixbuf to a new buffer in format <i><tt>type</tt></i>, which is
--   currently "jpeg", "tiff", "png", "ico" or "bmp".
--   
--   See <a>Pixbuf</a>.<tt><i>save_to_buffer</i></tt>() for more details.
--   
--   <i>Since: 2.4</i>
pixbufSaveToBufferv :: (HasCallStack, MonadIO m, IsPixbuf a) => a -> Text -> Maybe [Text] -> Maybe [Text] -> m ByteString

-- | Vector version of <tt>gdk_pixbuf_save_to_callback()</tt>.
--   
--   Saves pixbuf to a callback in format <i><tt>type</tt></i>, which is
--   currently "jpeg", "png", "tiff", "ico" or "bmp".
--   
--   If <i><tt>error</tt></i> is set, <tt>FALSE</tt> will be returned.
--   
--   See <a>Pixbuf</a>.<tt><i>save_to_callback</i></tt>() for more details.
--   
--   <i>Since: 2.4</i>
pixbufSaveToCallbackv :: (HasCallStack, MonadIO m, IsPixbuf a) => a -> PixbufSaveFunc -> Text -> Maybe [Text] -> Maybe [Text] -> m ()

-- | Finishes an asynchronous pixbuf save operation started with
--   <tt><i>gdk_pixbuf_save_to_stream_async()</i></tt>.
--   
--   <i>Since: 2.24</i>
pixbufSaveToStreamFinish :: (HasCallStack, MonadIO m, IsAsyncResult a) => a -> m ()

-- | Saves <tt>pixbuf</tt> to an output stream.
--   
--   Supported file formats are currently "jpeg", "tiff", "png", "ico" or
--   "bmp".
--   
--   See <a>Pixbuf</a>.<tt><i>save_to_stream</i></tt>() for more details.
--   
--   <i>Since: 2.36</i>
pixbufSaveToStreamv :: (HasCallStack, MonadIO m, IsPixbuf a, IsOutputStream b, IsCancellable c) => a -> b -> Text -> Maybe [Text] -> Maybe [Text] -> Maybe c -> m ()

-- | Saves <tt>pixbuf</tt> to an output stream asynchronously.
--   
--   For more details see <a>pixbufSaveToStreamv</a>, which is the
--   synchronous version of this function.
--   
--   When the operation is finished, <tt>callback</tt> will be called in
--   the main thread.
--   
--   You can then call <a>pixbufSaveToStreamFinish</a> to get the result of
--   the operation.
--   
--   <i>Since: 2.36</i>
pixbufSaveToStreamvAsync :: (HasCallStack, MonadIO m, IsPixbuf a, IsOutputStream b, IsCancellable c) => a -> b -> Text -> Maybe [Text] -> Maybe [Text] -> Maybe c -> Maybe AsyncReadyCallback -> m ()

-- | Vector version of <tt>gdk_pixbuf_save()</tt>.
--   
--   Saves pixbuf to a file in <tt>type</tt>, which is currently "jpeg",
--   "png", "tiff", "ico" or "bmp".
--   
--   If <i><tt>error</tt></i> is set, <tt>FALSE</tt> will be returned.
--   
--   See <a>Pixbuf</a>.<tt><i>save</i></tt>() for more details.
pixbufSavev :: (HasCallStack, MonadIO m, IsPixbuf a) => a -> [Char] -> Text -> Maybe [Text] -> Maybe [Text] -> m ()

-- | Creates a transformation of the source image <i><tt>src</tt></i> by
--   scaling by <i><tt>scaleX</tt></i> and <i><tt>scaleY</tt></i> then
--   translating by <i><tt>offsetX</tt></i> and <i><tt>offsetY</tt></i>,
--   then renders the rectangle (<i><tt>destX</tt></i>,
--   <i><tt>destY</tt></i>, <i><tt>destWidth</tt></i>,
--   <i><tt>destHeight</tt></i>) of the resulting image onto the
--   destination image replacing the previous contents.
--   
--   Try to use <a>pixbufScaleSimple</a> first; this function is the
--   industrial-strength power tool you can fall back to, if
--   <a>pixbufScaleSimple</a> isn't powerful enough.
--   
--   If the source rectangle overlaps the destination rectangle on the same
--   pixbuf, it will be overwritten during the scaling which results in
--   rendering artifacts.
pixbufScale :: (HasCallStack, MonadIO m, IsPixbuf a, IsPixbuf b) => a -> b -> Int32 -> Int32 -> Int32 -> Int32 -> Double -> Double -> Double -> Double -> InterpType -> m ()

-- | Create a new pixbuf containing a copy of <tt>src</tt> scaled to
--   <tt>dest_width</tt> x <tt>dest_height</tt>.
--   
--   This function leaves <tt>src</tt> unaffected.
--   
--   The <tt>interp_type</tt> should be <tt>GDK_INTERP_NEAREST</tt> if you
--   want maximum speed (but when scaling down <tt>GDK_INTERP_NEAREST</tt>
--   is usually unusably ugly). The default <tt>interp_type</tt> should be
--   <tt>GDK_INTERP_BILINEAR</tt> which offers reasonable quality and
--   speed.
--   
--   You can scale a sub-portion of <tt>src</tt> by creating a sub-pixbuf
--   pointing into <tt>src</tt>; see <a>pixbufNewSubpixbuf</a>.
--   
--   If <tt>dest_width</tt> and <tt>dest_height</tt> are equal to the width
--   and height of <tt>src</tt>, this function will return an unscaled copy
--   of <tt>src</tt>.
--   
--   For more complicated scaling/alpha blending see <a>pixbufScale</a> and
--   <a>pixbufComposite</a>.
pixbufScaleSimple :: (HasCallStack, MonadIO m, IsPixbuf a) => a -> Int32 -> Int32 -> InterpType -> m (Maybe Pixbuf)

-- | Attaches a key/value pair as an option to a <tt>GdkPixbuf</tt>.
--   
--   If <tt>key</tt> already exists in the list of options attached to the
--   <tt>pixbuf</tt>, the new value is ignored and <tt>FALSE</tt> is
--   returned.
--   
--   <i>Since: 2.2</i>
pixbufSetOption :: (HasCallStack, MonadIO m, IsPixbuf a) => a -> Text -> Text -> m Bool

-- | Construct a <a>GValueConstruct</a> with valid value for the
--   “<tt>bits-per-sample</tt>” property. This is rarely needed directly,
--   but it is used by <a>new</a>.
constructPixbufBitsPerSample :: (IsPixbuf o, MonadIO m) => Int32 -> m (GValueConstruct o)

-- | Get the value of the “<tt>bits-per-sample</tt>” property. When
--   <a>overloading</a> is enabled, this is equivalent to
--   
--   <pre>
--   <a>get</a> pixbuf #bitsPerSample
--   </pre>
getPixbufBitsPerSample :: (MonadIO m, IsPixbuf o) => o -> m Int32

-- | Construct a <a>GValueConstruct</a> with valid value for the
--   “<tt>colorspace</tt>” property. This is rarely needed directly, but it
--   is used by <a>new</a>.
constructPixbufColorspace :: (IsPixbuf o, MonadIO m) => Colorspace -> m (GValueConstruct o)

-- | Get the value of the “<tt>colorspace</tt>” property. When
--   <a>overloading</a> is enabled, this is equivalent to
--   
--   <pre>
--   <a>get</a> pixbuf #colorspace
--   </pre>
getPixbufColorspace :: (MonadIO m, IsPixbuf o) => o -> m Colorspace

-- | Construct a <a>GValueConstruct</a> with valid value for the
--   “<tt>has-alpha</tt>” property. This is rarely needed directly, but it
--   is used by <a>new</a>.
constructPixbufHasAlpha :: (IsPixbuf o, MonadIO m) => Bool -> m (GValueConstruct o)

-- | Get the value of the “<tt>has-alpha</tt>” property. When
--   <a>overloading</a> is enabled, this is equivalent to
--   
--   <pre>
--   <a>get</a> pixbuf #hasAlpha
--   </pre>
getPixbufHasAlpha :: (MonadIO m, IsPixbuf o) => o -> m Bool

-- | Construct a <a>GValueConstruct</a> with valid value for the
--   “<tt>height</tt>” property. This is rarely needed directly, but it is
--   used by <a>new</a>.
constructPixbufHeight :: (IsPixbuf o, MonadIO m) => Int32 -> m (GValueConstruct o)

-- | Get the value of the “<tt>height</tt>” property. When
--   <a>overloading</a> is enabled, this is equivalent to
--   
--   <pre>
--   <a>get</a> pixbuf #height
--   </pre>
getPixbufHeight :: (MonadIO m, IsPixbuf o) => o -> m Int32

-- | Construct a <a>GValueConstruct</a> with valid value for the
--   “<tt>n-channels</tt>” property. This is rarely needed directly, but it
--   is used by <a>new</a>.
constructPixbufNChannels :: (IsPixbuf o, MonadIO m) => Int32 -> m (GValueConstruct o)

-- | Get the value of the “<tt>n-channels</tt>” property. When
--   <a>overloading</a> is enabled, this is equivalent to
--   
--   <pre>
--   <a>get</a> pixbuf #nChannels
--   </pre>
getPixbufNChannels :: (MonadIO m, IsPixbuf o) => o -> m Int32

-- | Construct a <a>GValueConstruct</a> with valid value for the
--   “<tt>pixel-bytes</tt>” property. This is rarely needed directly, but
--   it is used by <a>new</a>.
constructPixbufPixelBytes :: (IsPixbuf o, MonadIO m) => Bytes -> m (GValueConstruct o)

-- | Get the value of the “<tt>pixel-bytes</tt>” property. When
--   <a>overloading</a> is enabled, this is equivalent to
--   
--   <pre>
--   <a>get</a> pixbuf #pixelBytes
--   </pre>
getPixbufPixelBytes :: (MonadIO m, IsPixbuf o) => o -> m (Maybe Bytes)

-- | Construct a <a>GValueConstruct</a> with valid value for the
--   “<tt>pixels</tt>” property. This is rarely needed directly, but it is
--   used by <a>new</a>.
constructPixbufPixels :: (IsPixbuf o, MonadIO m) => Ptr () -> m (GValueConstruct o)

-- | Get the value of the “<tt>pixels</tt>” property. When
--   <a>overloading</a> is enabled, this is equivalent to
--   
--   <pre>
--   <a>get</a> pixbuf #pixels
--   </pre>
getPixbufPixels :: (MonadIO m, IsPixbuf o) => o -> m (Ptr ())

-- | Construct a <a>GValueConstruct</a> with valid value for the
--   “<tt>rowstride</tt>” property. This is rarely needed directly, but it
--   is used by <a>new</a>.
constructPixbufRowstride :: (IsPixbuf o, MonadIO m) => Int32 -> m (GValueConstruct o)

-- | Get the value of the “<tt>rowstride</tt>” property. When
--   <a>overloading</a> is enabled, this is equivalent to
--   
--   <pre>
--   <a>get</a> pixbuf #rowstride
--   </pre>
getPixbufRowstride :: (MonadIO m, IsPixbuf o) => o -> m Int32

-- | Construct a <a>GValueConstruct</a> with valid value for the
--   “<tt>width</tt>” property. This is rarely needed directly, but it is
--   used by <a>new</a>.
constructPixbufWidth :: (IsPixbuf o, MonadIO m) => Int32 -> m (GValueConstruct o)

-- | Get the value of the “<tt>width</tt>” property. When
--   <a>overloading</a> is enabled, this is equivalent to
--   
--   <pre>
--   <a>get</a> pixbuf #width
--   </pre>
getPixbufWidth :: (MonadIO m, IsPixbuf o) => o -> m Int32
instance GHC.Classes.Eq GI.GdkPixbuf.Objects.Pixbuf.Pixbuf
instance Data.GI.Base.BasicTypes.GObject GI.GdkPixbuf.Objects.Pixbuf.Pixbuf
instance Data.GI.Base.Overloading.HasParentTypes GI.GdkPixbuf.Objects.Pixbuf.Pixbuf
instance Data.GI.Base.GValue.IsGValue (GHC.Internal.Maybe.Maybe GI.GdkPixbuf.Objects.Pixbuf.Pixbuf)
instance (Data.GI.Base.BasicTypes.GObject o, Data.GI.Base.Overloading.IsDescendantOf GI.GdkPixbuf.Objects.Pixbuf.Pixbuf o) => GI.GdkPixbuf.Objects.Pixbuf.IsPixbuf o
instance Data.GI.Base.BasicTypes.ManagedPtrNewtype GI.GdkPixbuf.Objects.Pixbuf.Pixbuf
instance Data.GI.Base.BasicTypes.TypedObject GI.GdkPixbuf.Objects.Pixbuf.Pixbuf


module GI.GdkPixbuf.Objects


module GI.GdkPixbuf
