Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
- Signals
- PixbufDestroyNotify
- PixbufModuleFillInfoFunc
- PixbufModuleFillVtableFunc
- PixbufModuleIsSaveOptionSupportedFieldCallback
- PixbufModuleLoadIncrementFieldCallback
- PixbufModulePreparedFunc
- PixbufModuleSaveFieldCallback
- PixbufModuleSizeFunc
- PixbufModuleStopLoadFieldCallback
- PixbufModuleUpdatedFunc
- PixbufSaveFunc
Synopsis
- type C_PixbufDestroyNotify = Ptr Word8 -> Ptr () -> IO ()
- type PixbufDestroyNotify = Ptr Word8 -> IO ()
- type PixbufDestroyNotify_WithClosures = Ptr Word8 -> Ptr () -> IO ()
- drop_closures_PixbufDestroyNotify :: PixbufDestroyNotify -> PixbufDestroyNotify_WithClosures
- dynamic_PixbufDestroyNotify :: (HasCallStack, MonadIO m) => FunPtr C_PixbufDestroyNotify -> Ptr Word8 -> Ptr () -> m ()
- genClosure_PixbufDestroyNotify :: MonadIO m => PixbufDestroyNotify -> m (GClosure C_PixbufDestroyNotify)
- mk_PixbufDestroyNotify :: C_PixbufDestroyNotify -> IO (FunPtr C_PixbufDestroyNotify)
- noPixbufDestroyNotify :: Maybe PixbufDestroyNotify
- noPixbufDestroyNotify_WithClosures :: Maybe PixbufDestroyNotify_WithClosures
- wrap_PixbufDestroyNotify :: Maybe (Ptr (FunPtr C_PixbufDestroyNotify)) -> PixbufDestroyNotify_WithClosures -> C_PixbufDestroyNotify
- type C_PixbufModuleFillInfoFunc = Ptr PixbufFormat -> IO ()
- type PixbufModuleFillInfoFunc = PixbufFormat -> IO ()
- dynamic_PixbufModuleFillInfoFunc :: (HasCallStack, MonadIO m) => FunPtr C_PixbufModuleFillInfoFunc -> PixbufFormat -> m ()
- genClosure_PixbufModuleFillInfoFunc :: MonadIO m => PixbufModuleFillInfoFunc -> m (GClosure C_PixbufModuleFillInfoFunc)
- mk_PixbufModuleFillInfoFunc :: C_PixbufModuleFillInfoFunc -> IO (FunPtr C_PixbufModuleFillInfoFunc)
- noPixbufModuleFillInfoFunc :: Maybe PixbufModuleFillInfoFunc
- wrap_PixbufModuleFillInfoFunc :: Maybe (Ptr (FunPtr C_PixbufModuleFillInfoFunc)) -> PixbufModuleFillInfoFunc -> C_PixbufModuleFillInfoFunc
- type C_PixbufModuleFillVtableFunc = Ptr PixbufModule -> IO ()
- type PixbufModuleFillVtableFunc = PixbufModule -> IO ()
- dynamic_PixbufModuleFillVtableFunc :: (HasCallStack, MonadIO m) => FunPtr C_PixbufModuleFillVtableFunc -> PixbufModule -> m ()
- genClosure_PixbufModuleFillVtableFunc :: MonadIO m => PixbufModuleFillVtableFunc -> m (GClosure C_PixbufModuleFillVtableFunc)
- mk_PixbufModuleFillVtableFunc :: C_PixbufModuleFillVtableFunc -> IO (FunPtr C_PixbufModuleFillVtableFunc)
- noPixbufModuleFillVtableFunc :: Maybe PixbufModuleFillVtableFunc
- wrap_PixbufModuleFillVtableFunc :: Maybe (Ptr (FunPtr C_PixbufModuleFillVtableFunc)) -> PixbufModuleFillVtableFunc -> C_PixbufModuleFillVtableFunc
- type C_PixbufModuleIsSaveOptionSupportedFieldCallback = CString -> IO CInt
- type PixbufModuleIsSaveOptionSupportedFieldCallback = Text -> IO Bool
- dynamic_PixbufModuleIsSaveOptionSupportedFieldCallback :: (HasCallStack, MonadIO m) => FunPtr C_PixbufModuleIsSaveOptionSupportedFieldCallback -> Text -> m Bool
- genClosure_PixbufModuleIsSaveOptionSupportedFieldCallback :: MonadIO m => PixbufModuleIsSaveOptionSupportedFieldCallback -> m (GClosure C_PixbufModuleIsSaveOptionSupportedFieldCallback)
- mk_PixbufModuleIsSaveOptionSupportedFieldCallback :: C_PixbufModuleIsSaveOptionSupportedFieldCallback -> IO (FunPtr C_PixbufModuleIsSaveOptionSupportedFieldCallback)
- noPixbufModuleIsSaveOptionSupportedFieldCallback :: Maybe PixbufModuleIsSaveOptionSupportedFieldCallback
- wrap_PixbufModuleIsSaveOptionSupportedFieldCallback :: Maybe (Ptr (FunPtr C_PixbufModuleIsSaveOptionSupportedFieldCallback)) -> PixbufModuleIsSaveOptionSupportedFieldCallback -> C_PixbufModuleIsSaveOptionSupportedFieldCallback
- type C_PixbufModuleLoadIncrementFieldCallback = Ptr () -> Word8 -> Word32 -> Ptr (Ptr GError) -> IO CInt
- type PixbufModuleLoadIncrementFieldCallback = Ptr () -> Word8 -> Word32 -> IO ()
- dynamic_PixbufModuleLoadIncrementFieldCallback :: (HasCallStack, MonadIO m) => FunPtr C_PixbufModuleLoadIncrementFieldCallback -> Ptr () -> Word8 -> Word32 -> m ()
- mk_PixbufModuleLoadIncrementFieldCallback :: C_PixbufModuleLoadIncrementFieldCallback -> IO (FunPtr C_PixbufModuleLoadIncrementFieldCallback)
- noPixbufModuleLoadIncrementFieldCallback :: Maybe PixbufModuleLoadIncrementFieldCallback
- type C_PixbufModulePreparedFunc = Ptr Pixbuf -> Ptr PixbufAnimation -> Ptr () -> IO ()
- type PixbufModulePreparedFunc = Pixbuf -> PixbufAnimation -> IO ()
- type PixbufModulePreparedFunc_WithClosures = Pixbuf -> PixbufAnimation -> Ptr () -> IO ()
- drop_closures_PixbufModulePreparedFunc :: PixbufModulePreparedFunc -> PixbufModulePreparedFunc_WithClosures
- dynamic_PixbufModulePreparedFunc :: (HasCallStack, MonadIO m, IsPixbuf a, IsPixbufAnimation b) => FunPtr C_PixbufModulePreparedFunc -> a -> b -> Ptr () -> m ()
- genClosure_PixbufModulePreparedFunc :: MonadIO m => PixbufModulePreparedFunc -> m (GClosure C_PixbufModulePreparedFunc)
- mk_PixbufModulePreparedFunc :: C_PixbufModulePreparedFunc -> IO (FunPtr C_PixbufModulePreparedFunc)
- noPixbufModulePreparedFunc :: Maybe PixbufModulePreparedFunc
- noPixbufModulePreparedFunc_WithClosures :: Maybe PixbufModulePreparedFunc_WithClosures
- wrap_PixbufModulePreparedFunc :: Maybe (Ptr (FunPtr C_PixbufModulePreparedFunc)) -> PixbufModulePreparedFunc_WithClosures -> C_PixbufModulePreparedFunc
- type C_PixbufModuleSaveFieldCallback = Ptr () -> Ptr Pixbuf -> CString -> CString -> Ptr (Ptr GError) -> IO CInt
- type PixbufModuleSaveFieldCallback = Ptr () -> Pixbuf -> Text -> Text -> IO ()
- dynamic_PixbufModuleSaveFieldCallback :: (HasCallStack, MonadIO m, IsPixbuf a) => FunPtr C_PixbufModuleSaveFieldCallback -> Ptr () -> a -> Text -> Text -> m ()
- mk_PixbufModuleSaveFieldCallback :: C_PixbufModuleSaveFieldCallback -> IO (FunPtr C_PixbufModuleSaveFieldCallback)
- noPixbufModuleSaveFieldCallback :: Maybe PixbufModuleSaveFieldCallback
- type C_PixbufModuleSizeFunc = Int32 -> Int32 -> Ptr () -> IO ()
- type PixbufModuleSizeFunc = Int32 -> Int32 -> IO ()
- type PixbufModuleSizeFunc_WithClosures = Int32 -> Int32 -> Ptr () -> IO ()
- drop_closures_PixbufModuleSizeFunc :: PixbufModuleSizeFunc -> PixbufModuleSizeFunc_WithClosures
- dynamic_PixbufModuleSizeFunc :: (HasCallStack, MonadIO m) => FunPtr C_PixbufModuleSizeFunc -> Int32 -> Int32 -> Ptr () -> m ()
- genClosure_PixbufModuleSizeFunc :: MonadIO m => PixbufModuleSizeFunc -> m (GClosure C_PixbufModuleSizeFunc)
- mk_PixbufModuleSizeFunc :: C_PixbufModuleSizeFunc -> IO (FunPtr C_PixbufModuleSizeFunc)
- noPixbufModuleSizeFunc :: Maybe PixbufModuleSizeFunc
- noPixbufModuleSizeFunc_WithClosures :: Maybe PixbufModuleSizeFunc_WithClosures
- wrap_PixbufModuleSizeFunc :: Maybe (Ptr (FunPtr C_PixbufModuleSizeFunc)) -> PixbufModuleSizeFunc_WithClosures -> C_PixbufModuleSizeFunc
- type C_PixbufModuleStopLoadFieldCallback = Ptr () -> Ptr (Ptr GError) -> IO CInt
- type PixbufModuleStopLoadFieldCallback = Ptr () -> IO ()
- dynamic_PixbufModuleStopLoadFieldCallback :: (HasCallStack, MonadIO m) => FunPtr C_PixbufModuleStopLoadFieldCallback -> Ptr () -> m ()
- mk_PixbufModuleStopLoadFieldCallback :: C_PixbufModuleStopLoadFieldCallback -> IO (FunPtr C_PixbufModuleStopLoadFieldCallback)
- noPixbufModuleStopLoadFieldCallback :: Maybe PixbufModuleStopLoadFieldCallback
- type C_PixbufModuleUpdatedFunc = Ptr Pixbuf -> Int32 -> Int32 -> Int32 -> Int32 -> Ptr () -> IO ()
- type PixbufModuleUpdatedFunc = Pixbuf -> Int32 -> Int32 -> Int32 -> Int32 -> IO ()
- type PixbufModuleUpdatedFunc_WithClosures = Pixbuf -> Int32 -> Int32 -> Int32 -> Int32 -> Ptr () -> IO ()
- drop_closures_PixbufModuleUpdatedFunc :: PixbufModuleUpdatedFunc -> PixbufModuleUpdatedFunc_WithClosures
- dynamic_PixbufModuleUpdatedFunc :: (HasCallStack, MonadIO m, IsPixbuf a) => FunPtr C_PixbufModuleUpdatedFunc -> a -> Int32 -> Int32 -> Int32 -> Int32 -> Ptr () -> m ()
- genClosure_PixbufModuleUpdatedFunc :: MonadIO m => PixbufModuleUpdatedFunc -> m (GClosure C_PixbufModuleUpdatedFunc)
- mk_PixbufModuleUpdatedFunc :: C_PixbufModuleUpdatedFunc -> IO (FunPtr C_PixbufModuleUpdatedFunc)
- noPixbufModuleUpdatedFunc :: Maybe PixbufModuleUpdatedFunc
- noPixbufModuleUpdatedFunc_WithClosures :: Maybe PixbufModuleUpdatedFunc_WithClosures
- wrap_PixbufModuleUpdatedFunc :: Maybe (Ptr (FunPtr C_PixbufModuleUpdatedFunc)) -> PixbufModuleUpdatedFunc_WithClosures -> C_PixbufModuleUpdatedFunc
- type C_PixbufSaveFunc = Ptr Word8 -> Word64 -> Ptr (Ptr GError) -> Ptr () -> IO CInt
- type PixbufSaveFunc = ByteString -> IO (Bool, GError)
- type PixbufSaveFunc_WithClosures = ByteString -> Ptr () -> IO (Bool, GError)
- drop_closures_PixbufSaveFunc :: PixbufSaveFunc -> PixbufSaveFunc_WithClosures
- dynamic_PixbufSaveFunc :: (HasCallStack, MonadIO m) => FunPtr C_PixbufSaveFunc -> ByteString -> Ptr () -> m (Bool, GError)
- genClosure_PixbufSaveFunc :: MonadIO m => PixbufSaveFunc -> m (GClosure C_PixbufSaveFunc)
- mk_PixbufSaveFunc :: C_PixbufSaveFunc -> IO (FunPtr C_PixbufSaveFunc)
- noPixbufSaveFunc :: Maybe PixbufSaveFunc
- noPixbufSaveFunc_WithClosures :: Maybe PixbufSaveFunc_WithClosures
- wrap_PixbufSaveFunc :: Maybe (Ptr (FunPtr C_PixbufSaveFunc)) -> PixbufSaveFunc_WithClosures -> C_PixbufSaveFunc
Signals
PixbufDestroyNotify
type C_PixbufDestroyNotify = Ptr Word8 -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type PixbufDestroyNotify Source #
A function of this type is responsible for freeing the pixel array of a pixbuf.
The pixbufNewFromData
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 GdkPixbufDestroyNotify
so that
the pixel data can be freed when the pixbuf is finalized.
type PixbufDestroyNotify_WithClosures Source #
= Ptr Word8 |
|
-> Ptr () |
|
-> IO () |
A function of this type is responsible for freeing the pixel array of a pixbuf.
The pixbufNewFromData
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 GdkPixbufDestroyNotify
so that
the pixel data can be freed when the pixbuf is finalized.
drop_closures_PixbufDestroyNotify :: PixbufDestroyNotify -> PixbufDestroyNotify_WithClosures Source #
A simple wrapper that ignores the closure arguments.
dynamic_PixbufDestroyNotify Source #
:: (HasCallStack, MonadIO m) | |
=> FunPtr C_PixbufDestroyNotify | |
-> Ptr Word8 |
|
-> Ptr () |
|
-> m () |
Given a pointer to a foreign C function, wrap it into a function callable from Haskell.
genClosure_PixbufDestroyNotify :: MonadIO m => PixbufDestroyNotify -> m (GClosure C_PixbufDestroyNotify) Source #
Wrap the callback into a GClosure
.
mk_PixbufDestroyNotify :: C_PixbufDestroyNotify -> IO (FunPtr C_PixbufDestroyNotify) Source #
Generate a function pointer callable from C code, from a C_PixbufDestroyNotify
.
noPixbufDestroyNotify :: Maybe PixbufDestroyNotify Source #
A convenience synonym for
.Nothing
:: Maybe
PixbufDestroyNotify
noPixbufDestroyNotify_WithClosures :: Maybe PixbufDestroyNotify_WithClosures Source #
A convenience synonym for
.Nothing
:: Maybe
PixbufDestroyNotify_WithClosures
wrap_PixbufDestroyNotify :: Maybe (Ptr (FunPtr C_PixbufDestroyNotify)) -> PixbufDestroyNotify_WithClosures -> C_PixbufDestroyNotify Source #
Wrap a PixbufDestroyNotify
into a C_PixbufDestroyNotify
.
PixbufModuleFillInfoFunc
type C_PixbufModuleFillInfoFunc = Ptr PixbufFormat -> IO () Source #
Type for the callback on the (unwrapped) C side.
type PixbufModuleFillInfoFunc Source #
= PixbufFormat |
|
-> IO () |
Defines the type of the function used to fill a
PixbufFormat
structure with information about a module.
Since: 2.2
dynamic_PixbufModuleFillInfoFunc Source #
:: (HasCallStack, MonadIO m) | |
=> FunPtr C_PixbufModuleFillInfoFunc | |
-> PixbufFormat |
|
-> m () |
Given a pointer to a foreign C function, wrap it into a function callable from Haskell.
genClosure_PixbufModuleFillInfoFunc :: MonadIO m => PixbufModuleFillInfoFunc -> m (GClosure C_PixbufModuleFillInfoFunc) Source #
Wrap the callback into a GClosure
.
mk_PixbufModuleFillInfoFunc :: C_PixbufModuleFillInfoFunc -> IO (FunPtr C_PixbufModuleFillInfoFunc) Source #
Generate a function pointer callable from C code, from a C_PixbufModuleFillInfoFunc
.
noPixbufModuleFillInfoFunc :: Maybe PixbufModuleFillInfoFunc Source #
A convenience synonym for
.Nothing
:: Maybe
PixbufModuleFillInfoFunc
wrap_PixbufModuleFillInfoFunc :: Maybe (Ptr (FunPtr C_PixbufModuleFillInfoFunc)) -> PixbufModuleFillInfoFunc -> C_PixbufModuleFillInfoFunc Source #
Wrap a PixbufModuleFillInfoFunc
into a C_PixbufModuleFillInfoFunc
.
PixbufModuleFillVtableFunc
type C_PixbufModuleFillVtableFunc = Ptr PixbufModule -> IO () Source #
Type for the callback on the (unwrapped) C side.
type PixbufModuleFillVtableFunc Source #
= PixbufModule |
|
-> IO () |
Defines the type of the function used to set the vtable of a
PixbufModule
when it is loaded.
Since: 2.2
dynamic_PixbufModuleFillVtableFunc Source #
:: (HasCallStack, MonadIO m) | |
=> FunPtr C_PixbufModuleFillVtableFunc | |
-> PixbufModule |
|
-> m () |
Given a pointer to a foreign C function, wrap it into a function callable from Haskell.
genClosure_PixbufModuleFillVtableFunc :: MonadIO m => PixbufModuleFillVtableFunc -> m (GClosure C_PixbufModuleFillVtableFunc) Source #
Wrap the callback into a GClosure
.
mk_PixbufModuleFillVtableFunc :: C_PixbufModuleFillVtableFunc -> IO (FunPtr C_PixbufModuleFillVtableFunc) Source #
Generate a function pointer callable from C code, from a C_PixbufModuleFillVtableFunc
.
noPixbufModuleFillVtableFunc :: Maybe PixbufModuleFillVtableFunc Source #
A convenience synonym for
.Nothing
:: Maybe
PixbufModuleFillVtableFunc
wrap_PixbufModuleFillVtableFunc :: Maybe (Ptr (FunPtr C_PixbufModuleFillVtableFunc)) -> PixbufModuleFillVtableFunc -> C_PixbufModuleFillVtableFunc Source #
Wrap a PixbufModuleFillVtableFunc
into a C_PixbufModuleFillVtableFunc
.
PixbufModuleIsSaveOptionSupportedFieldCallback
type C_PixbufModuleIsSaveOptionSupportedFieldCallback = CString -> IO CInt Source #
Type for the callback on the (unwrapped) C side.
type PixbufModuleIsSaveOptionSupportedFieldCallback = Text -> IO Bool Source #
No description available in the introspection data.
dynamic_PixbufModuleIsSaveOptionSupportedFieldCallback :: (HasCallStack, MonadIO m) => FunPtr C_PixbufModuleIsSaveOptionSupportedFieldCallback -> Text -> m Bool Source #
Given a pointer to a foreign C function, wrap it into a function callable from Haskell.
genClosure_PixbufModuleIsSaveOptionSupportedFieldCallback :: MonadIO m => PixbufModuleIsSaveOptionSupportedFieldCallback -> m (GClosure C_PixbufModuleIsSaveOptionSupportedFieldCallback) Source #
Wrap the callback into a GClosure
.
mk_PixbufModuleIsSaveOptionSupportedFieldCallback :: C_PixbufModuleIsSaveOptionSupportedFieldCallback -> IO (FunPtr C_PixbufModuleIsSaveOptionSupportedFieldCallback) Source #
Generate a function pointer callable from C code, from a C_PixbufModuleIsSaveOptionSupportedFieldCallback
.
noPixbufModuleIsSaveOptionSupportedFieldCallback :: Maybe PixbufModuleIsSaveOptionSupportedFieldCallback Source #
A convenience synonym for
.Nothing
:: Maybe
PixbufModuleIsSaveOptionSupportedFieldCallback
wrap_PixbufModuleIsSaveOptionSupportedFieldCallback :: Maybe (Ptr (FunPtr C_PixbufModuleIsSaveOptionSupportedFieldCallback)) -> PixbufModuleIsSaveOptionSupportedFieldCallback -> C_PixbufModuleIsSaveOptionSupportedFieldCallback Source #
PixbufModuleLoadIncrementFieldCallback
type C_PixbufModuleLoadIncrementFieldCallback = Ptr () -> Word8 -> Word32 -> Ptr (Ptr GError) -> IO CInt Source #
Type for the callback on the (unwrapped) C side.
type PixbufModuleLoadIncrementFieldCallback Source #
No description available in the introspection data.
dynamic_PixbufModuleLoadIncrementFieldCallback Source #
:: (HasCallStack, MonadIO m) | |
=> FunPtr C_PixbufModuleLoadIncrementFieldCallback | |
-> Ptr () | |
-> Word8 | |
-> Word32 | |
-> m () | (Can throw |
Given a pointer to a foreign C function, wrap it into a function callable from Haskell.
mk_PixbufModuleLoadIncrementFieldCallback :: C_PixbufModuleLoadIncrementFieldCallback -> IO (FunPtr C_PixbufModuleLoadIncrementFieldCallback) Source #
Generate a function pointer callable from C code, from a C_PixbufModuleLoadIncrementFieldCallback
.
noPixbufModuleLoadIncrementFieldCallback :: Maybe PixbufModuleLoadIncrementFieldCallback Source #
A convenience synonym for
.Nothing
:: Maybe
PixbufModuleLoadIncrementFieldCallback
PixbufModulePreparedFunc
type C_PixbufModulePreparedFunc = Ptr Pixbuf -> Ptr PixbufAnimation -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type PixbufModulePreparedFunc Source #
= Pixbuf |
|
-> PixbufAnimation |
|
-> IO () |
Defines the type of the function that gets called once the initial
setup of pixbuf
is done.
PixbufLoader
uses a function of this type to emit the
"<link linkend="GdkPixbufLoader-area-prepared">area_prepared</link>"
signal.
Since: 2.2
type PixbufModulePreparedFunc_WithClosures Source #
= Pixbuf |
|
-> PixbufAnimation |
|
-> Ptr () |
|
-> IO () |
Defines the type of the function that gets called once the initial
setup of pixbuf
is done.
PixbufLoader
uses a function of this type to emit the
"<link linkend="GdkPixbufLoader-area-prepared">area_prepared</link>"
signal.
Since: 2.2
drop_closures_PixbufModulePreparedFunc :: PixbufModulePreparedFunc -> PixbufModulePreparedFunc_WithClosures Source #
A simple wrapper that ignores the closure arguments.
dynamic_PixbufModulePreparedFunc Source #
:: (HasCallStack, MonadIO m, IsPixbuf a, IsPixbufAnimation b) | |
=> FunPtr C_PixbufModulePreparedFunc | |
-> a |
|
-> b |
|
-> Ptr () |
|
-> m () |
Given a pointer to a foreign C function, wrap it into a function callable from Haskell.
genClosure_PixbufModulePreparedFunc :: MonadIO m => PixbufModulePreparedFunc -> m (GClosure C_PixbufModulePreparedFunc) Source #
Wrap the callback into a GClosure
.
mk_PixbufModulePreparedFunc :: C_PixbufModulePreparedFunc -> IO (FunPtr C_PixbufModulePreparedFunc) Source #
Generate a function pointer callable from C code, from a C_PixbufModulePreparedFunc
.
noPixbufModulePreparedFunc :: Maybe PixbufModulePreparedFunc Source #
A convenience synonym for
.Nothing
:: Maybe
PixbufModulePreparedFunc
noPixbufModulePreparedFunc_WithClosures :: Maybe PixbufModulePreparedFunc_WithClosures Source #
A convenience synonym for
.Nothing
:: Maybe
PixbufModulePreparedFunc_WithClosures
wrap_PixbufModulePreparedFunc :: Maybe (Ptr (FunPtr C_PixbufModulePreparedFunc)) -> PixbufModulePreparedFunc_WithClosures -> C_PixbufModulePreparedFunc Source #
Wrap a PixbufModulePreparedFunc
into a C_PixbufModulePreparedFunc
.
PixbufModuleSaveFieldCallback
type C_PixbufModuleSaveFieldCallback = Ptr () -> Ptr Pixbuf -> CString -> CString -> Ptr (Ptr GError) -> IO CInt Source #
Type for the callback on the (unwrapped) C side.
type PixbufModuleSaveFieldCallback Source #
No description available in the introspection data.
dynamic_PixbufModuleSaveFieldCallback Source #
:: (HasCallStack, MonadIO m, IsPixbuf a) | |
=> FunPtr C_PixbufModuleSaveFieldCallback | |
-> Ptr () | |
-> a | |
-> Text | |
-> Text | |
-> m () | (Can throw |
Given a pointer to a foreign C function, wrap it into a function callable from Haskell.
mk_PixbufModuleSaveFieldCallback :: C_PixbufModuleSaveFieldCallback -> IO (FunPtr C_PixbufModuleSaveFieldCallback) Source #
Generate a function pointer callable from C code, from a C_PixbufModuleSaveFieldCallback
.
noPixbufModuleSaveFieldCallback :: Maybe PixbufModuleSaveFieldCallback Source #
A convenience synonym for
.Nothing
:: Maybe
PixbufModuleSaveFieldCallback
PixbufModuleSizeFunc
type C_PixbufModuleSizeFunc = Int32 -> Int32 -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type PixbufModuleSizeFunc Source #
= 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 width
and height
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 width
or height
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 pixbufGetFileInfo
efficiently.
Since: 2.2
type PixbufModuleSizeFunc_WithClosures Source #
= 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 width
and height
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 width
or height
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 pixbufGetFileInfo
efficiently.
Since: 2.2
drop_closures_PixbufModuleSizeFunc :: PixbufModuleSizeFunc -> PixbufModuleSizeFunc_WithClosures Source #
A simple wrapper that ignores the closure arguments.
dynamic_PixbufModuleSizeFunc Source #
:: (HasCallStack, MonadIO m) | |
=> FunPtr C_PixbufModuleSizeFunc | |
-> Int32 |
|
-> Int32 |
|
-> Ptr () |
|
-> m () |
Given a pointer to a foreign C function, wrap it into a function callable from Haskell.
genClosure_PixbufModuleSizeFunc :: MonadIO m => PixbufModuleSizeFunc -> m (GClosure C_PixbufModuleSizeFunc) Source #
Wrap the callback into a GClosure
.
mk_PixbufModuleSizeFunc :: C_PixbufModuleSizeFunc -> IO (FunPtr C_PixbufModuleSizeFunc) Source #
Generate a function pointer callable from C code, from a C_PixbufModuleSizeFunc
.
noPixbufModuleSizeFunc :: Maybe PixbufModuleSizeFunc Source #
A convenience synonym for
.Nothing
:: Maybe
PixbufModuleSizeFunc
noPixbufModuleSizeFunc_WithClosures :: Maybe PixbufModuleSizeFunc_WithClosures Source #
A convenience synonym for
.Nothing
:: Maybe
PixbufModuleSizeFunc_WithClosures
wrap_PixbufModuleSizeFunc :: Maybe (Ptr (FunPtr C_PixbufModuleSizeFunc)) -> PixbufModuleSizeFunc_WithClosures -> C_PixbufModuleSizeFunc Source #
Wrap a PixbufModuleSizeFunc
into a C_PixbufModuleSizeFunc
.
PixbufModuleStopLoadFieldCallback
type C_PixbufModuleStopLoadFieldCallback = Ptr () -> Ptr (Ptr GError) -> IO CInt Source #
Type for the callback on the (unwrapped) C side.
type PixbufModuleStopLoadFieldCallback Source #
No description available in the introspection data.
dynamic_PixbufModuleStopLoadFieldCallback Source #
:: (HasCallStack, MonadIO m) | |
=> FunPtr C_PixbufModuleStopLoadFieldCallback | |
-> Ptr () | |
-> m () | (Can throw |
Given a pointer to a foreign C function, wrap it into a function callable from Haskell.
mk_PixbufModuleStopLoadFieldCallback :: C_PixbufModuleStopLoadFieldCallback -> IO (FunPtr C_PixbufModuleStopLoadFieldCallback) Source #
Generate a function pointer callable from C code, from a C_PixbufModuleStopLoadFieldCallback
.
noPixbufModuleStopLoadFieldCallback :: Maybe PixbufModuleStopLoadFieldCallback Source #
A convenience synonym for
.Nothing
:: Maybe
PixbufModuleStopLoadFieldCallback
PixbufModuleUpdatedFunc
type C_PixbufModuleUpdatedFunc = Ptr Pixbuf -> Int32 -> Int32 -> Int32 -> Int32 -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type PixbufModuleUpdatedFunc Source #
= Pixbuf |
|
-> Int32 |
|
-> Int32 |
|
-> Int32 |
|
-> Int32 |
|
-> IO () |
Defines the type of the function that gets called every time a region
of pixbuf
is updated.
PixbufLoader
uses a function of this type to emit the
"<link linkend="GdkPixbufLoader-area-updated">area_updated</link>"
signal.
Since: 2.2
type PixbufModuleUpdatedFunc_WithClosures Source #
= Pixbuf |
|
-> Int32 |
|
-> Int32 |
|
-> Int32 |
|
-> Int32 |
|
-> Ptr () |
|
-> IO () |
Defines the type of the function that gets called every time a region
of pixbuf
is updated.
PixbufLoader
uses a function of this type to emit the
"<link linkend="GdkPixbufLoader-area-updated">area_updated</link>"
signal.
Since: 2.2
drop_closures_PixbufModuleUpdatedFunc :: PixbufModuleUpdatedFunc -> PixbufModuleUpdatedFunc_WithClosures Source #
A simple wrapper that ignores the closure arguments.
dynamic_PixbufModuleUpdatedFunc Source #
:: (HasCallStack, MonadIO m, IsPixbuf a) | |
=> FunPtr C_PixbufModuleUpdatedFunc | |
-> a |
|
-> Int32 |
|
-> Int32 |
|
-> Int32 |
|
-> Int32 |
|
-> Ptr () |
|
-> m () |
Given a pointer to a foreign C function, wrap it into a function callable from Haskell.
genClosure_PixbufModuleUpdatedFunc :: MonadIO m => PixbufModuleUpdatedFunc -> m (GClosure C_PixbufModuleUpdatedFunc) Source #
Wrap the callback into a GClosure
.
mk_PixbufModuleUpdatedFunc :: C_PixbufModuleUpdatedFunc -> IO (FunPtr C_PixbufModuleUpdatedFunc) Source #
Generate a function pointer callable from C code, from a C_PixbufModuleUpdatedFunc
.
noPixbufModuleUpdatedFunc :: Maybe PixbufModuleUpdatedFunc Source #
A convenience synonym for
.Nothing
:: Maybe
PixbufModuleUpdatedFunc
noPixbufModuleUpdatedFunc_WithClosures :: Maybe PixbufModuleUpdatedFunc_WithClosures Source #
A convenience synonym for
.Nothing
:: Maybe
PixbufModuleUpdatedFunc_WithClosures
wrap_PixbufModuleUpdatedFunc :: Maybe (Ptr (FunPtr C_PixbufModuleUpdatedFunc)) -> PixbufModuleUpdatedFunc_WithClosures -> C_PixbufModuleUpdatedFunc Source #
Wrap a PixbufModuleUpdatedFunc
into a C_PixbufModuleUpdatedFunc
.
PixbufSaveFunc
type C_PixbufSaveFunc = Ptr Word8 -> Word64 -> Ptr (Ptr GError) -> Ptr () -> IO CInt Source #
Type for the callback on the (unwrapped) C side.
type PixbufSaveFunc Source #
= ByteString |
|
-> IO (Bool, GError) | Returns: |
Save functions used by [methodgdkPixbuf
.Pixbuf.save_to_callback].
This function is called once for each block of bytes that is "written"
by gdk_pixbuf_save_to_callback()
.
If successful it should return TRUE
; if an error occurs it should set
error
and return FALSE
, in which case gdk_pixbuf_save_to_callback()
will fail with the same error.
Since: 2.4
type PixbufSaveFunc_WithClosures Source #
= ByteString |
|
-> Ptr () |
|
-> IO (Bool, GError) | Returns: |
Save functions used by [methodgdkPixbuf
.Pixbuf.save_to_callback].
This function is called once for each block of bytes that is "written"
by gdk_pixbuf_save_to_callback()
.
If successful it should return TRUE
; if an error occurs it should set
error
and return FALSE
, in which case gdk_pixbuf_save_to_callback()
will fail with the same error.
Since: 2.4
drop_closures_PixbufSaveFunc :: PixbufSaveFunc -> PixbufSaveFunc_WithClosures Source #
A simple wrapper that ignores the closure arguments.
dynamic_PixbufSaveFunc Source #
:: (HasCallStack, MonadIO m) | |
=> FunPtr C_PixbufSaveFunc | |
-> ByteString |
|
-> Ptr () |
|
-> m (Bool, GError) | Returns: |
Given a pointer to a foreign C function, wrap it into a function callable from Haskell.
genClosure_PixbufSaveFunc :: MonadIO m => PixbufSaveFunc -> m (GClosure C_PixbufSaveFunc) Source #
Wrap the callback into a GClosure
.
mk_PixbufSaveFunc :: C_PixbufSaveFunc -> IO (FunPtr C_PixbufSaveFunc) Source #
Generate a function pointer callable from C code, from a C_PixbufSaveFunc
.
noPixbufSaveFunc :: Maybe PixbufSaveFunc Source #
A convenience synonym for
.Nothing
:: Maybe
PixbufSaveFunc
noPixbufSaveFunc_WithClosures :: Maybe PixbufSaveFunc_WithClosures Source #
A convenience synonym for
.Nothing
:: Maybe
PixbufSaveFunc_WithClosures
wrap_PixbufSaveFunc :: Maybe (Ptr (FunPtr C_PixbufSaveFunc)) -> PixbufSaveFunc_WithClosures -> C_PixbufSaveFunc Source #
Wrap a PixbufSaveFunc
into a C_PixbufSaveFunc
.