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 |
Synopsis
- type AvatarImageLoadFunc = Int32 -> IO (Maybe Pixbuf)
- type AvatarImageLoadFunc_WithClosures = Int32 -> Ptr () -> IO (Maybe Pixbuf)
- type C_AvatarImageLoadFunc = Int32 -> Ptr () -> IO (Ptr Pixbuf)
- drop_closures_AvatarImageLoadFunc :: AvatarImageLoadFunc -> AvatarImageLoadFunc_WithClosures
- dynamic_AvatarImageLoadFunc :: (HasCallStack, MonadIO m) => FunPtr C_AvatarImageLoadFunc -> Int32 -> Ptr () -> m (Maybe Pixbuf)
- genClosure_AvatarImageLoadFunc :: MonadIO m => AvatarImageLoadFunc -> m (GClosure C_AvatarImageLoadFunc)
- mk_AvatarImageLoadFunc :: C_AvatarImageLoadFunc -> IO (FunPtr C_AvatarImageLoadFunc)
- noAvatarImageLoadFunc :: Maybe AvatarImageLoadFunc
- noAvatarImageLoadFunc_WithClosures :: Maybe AvatarImageLoadFunc_WithClosures
- wrap_AvatarImageLoadFunc :: Maybe (Ptr (FunPtr C_AvatarImageLoadFunc)) -> AvatarImageLoadFunc_WithClosures -> C_AvatarImageLoadFunc
- type C_ComboRowGetEnumValueNameFunc = Ptr EnumValueObject -> Ptr () -> IO CString
- type ComboRowGetEnumValueNameFunc = EnumValueObject -> IO Text
- type ComboRowGetEnumValueNameFunc_WithClosures = EnumValueObject -> Ptr () -> IO Text
- drop_closures_ComboRowGetEnumValueNameFunc :: ComboRowGetEnumValueNameFunc -> ComboRowGetEnumValueNameFunc_WithClosures
- dynamic_ComboRowGetEnumValueNameFunc :: (HasCallStack, MonadIO m, IsEnumValueObject a) => FunPtr C_ComboRowGetEnumValueNameFunc -> a -> Ptr () -> m Text
- genClosure_ComboRowGetEnumValueNameFunc :: MonadIO m => ComboRowGetEnumValueNameFunc -> m (GClosure C_ComboRowGetEnumValueNameFunc)
- mk_ComboRowGetEnumValueNameFunc :: C_ComboRowGetEnumValueNameFunc -> IO (FunPtr C_ComboRowGetEnumValueNameFunc)
- noComboRowGetEnumValueNameFunc :: Maybe ComboRowGetEnumValueNameFunc
- noComboRowGetEnumValueNameFunc_WithClosures :: Maybe ComboRowGetEnumValueNameFunc_WithClosures
- wrap_ComboRowGetEnumValueNameFunc :: Maybe (Ptr (FunPtr C_ComboRowGetEnumValueNameFunc)) -> ComboRowGetEnumValueNameFunc_WithClosures -> C_ComboRowGetEnumValueNameFunc
- type C_ComboRowGetNameFunc = Ptr Object -> Ptr () -> IO CString
- type ComboRowGetNameFunc = Object -> IO Text
- type ComboRowGetNameFunc_WithClosures = Object -> Ptr () -> IO Text
- drop_closures_ComboRowGetNameFunc :: ComboRowGetNameFunc -> ComboRowGetNameFunc_WithClosures
- dynamic_ComboRowGetNameFunc :: (HasCallStack, MonadIO m, IsObject a) => FunPtr C_ComboRowGetNameFunc -> a -> Ptr () -> m Text
- genClosure_ComboRowGetNameFunc :: MonadIO m => ComboRowGetNameFunc -> m (GClosure C_ComboRowGetNameFunc)
- mk_ComboRowGetNameFunc :: C_ComboRowGetNameFunc -> IO (FunPtr C_ComboRowGetNameFunc)
- noComboRowGetNameFunc :: Maybe ComboRowGetNameFunc
- noComboRowGetNameFunc_WithClosures :: Maybe ComboRowGetNameFunc_WithClosures
- wrap_ComboRowGetNameFunc :: Maybe (Ptr (FunPtr C_ComboRowGetNameFunc)) -> ComboRowGetNameFunc_WithClosures -> C_ComboRowGetNameFunc
Signals
AvatarImageLoadFunc
type AvatarImageLoadFunc Source #
= Int32 |
|
-> IO (Maybe Pixbuf) | Returns: the pixbuf to use as a custom avatar or
|
Deprecated: (Since version 1.2)use [methodavatar
.set_loadable_icon] instead.
Callback for loading an [classavatar
]'s image.
The returned Pixbuf
is expected to be square with width and
height set to size
. The image is cropped to a circle without any scaling or
transformation.
Since: 1.0
type AvatarImageLoadFunc_WithClosures Source #
= Int32 |
|
-> Ptr () |
|
-> IO (Maybe Pixbuf) | Returns: the pixbuf to use as a custom avatar or
|
Callback for loading an [classavatar
]'s image.
The returned Pixbuf
is expected to be square with width and
height set to size
. The image is cropped to a circle without any scaling or
transformation.
Since: 1.0
type C_AvatarImageLoadFunc = Int32 -> Ptr () -> IO (Ptr Pixbuf) Source #
Type for the callback on the (unwrapped) C side.
drop_closures_AvatarImageLoadFunc :: AvatarImageLoadFunc -> AvatarImageLoadFunc_WithClosures Source #
A simple wrapper that ignores the closure arguments.
dynamic_AvatarImageLoadFunc Source #
:: (HasCallStack, MonadIO m) | |
=> FunPtr C_AvatarImageLoadFunc | |
-> Int32 |
|
-> Ptr () |
|
-> m (Maybe Pixbuf) | Returns: the pixbuf to use as a custom avatar or
|
Given a pointer to a foreign C function, wrap it into a function callable from Haskell.
genClosure_AvatarImageLoadFunc :: MonadIO m => AvatarImageLoadFunc -> m (GClosure C_AvatarImageLoadFunc) Source #
Wrap the callback into a GClosure
.
mk_AvatarImageLoadFunc :: C_AvatarImageLoadFunc -> IO (FunPtr C_AvatarImageLoadFunc) Source #
Generate a function pointer callable from C code, from a C_AvatarImageLoadFunc
.
noAvatarImageLoadFunc :: Maybe AvatarImageLoadFunc Source #
A convenience synonym for
.Nothing
:: Maybe
AvatarImageLoadFunc
noAvatarImageLoadFunc_WithClosures :: Maybe AvatarImageLoadFunc_WithClosures Source #
A convenience synonym for
.Nothing
:: Maybe
AvatarImageLoadFunc_WithClosures
wrap_AvatarImageLoadFunc :: Maybe (Ptr (FunPtr C_AvatarImageLoadFunc)) -> AvatarImageLoadFunc_WithClosures -> C_AvatarImageLoadFunc Source #
Wrap a AvatarImageLoadFunc
into a C_AvatarImageLoadFunc
.
ComboRowGetEnumValueNameFunc
type C_ComboRowGetEnumValueNameFunc = Ptr EnumValueObject -> Ptr () -> IO CString Source #
Type for the callback on the (unwrapped) C side.
type ComboRowGetEnumValueNameFunc Source #
= EnumValueObject |
|
-> IO Text | Returns: a displayable name that represents |
Callback for getting the name of a row from an enum.
Called for combo rows that are bound to an enumeration with
[methodcomboRow
.set_for_enum] for each value from that enumeration.
See also: [funcenumValueRowName
].
Since: 1.0
type ComboRowGetEnumValueNameFunc_WithClosures Source #
= EnumValueObject |
|
-> Ptr () |
|
-> IO Text | Returns: a displayable name that represents |
Callback for getting the name of a row from an enum.
Called for combo rows that are bound to an enumeration with
[methodcomboRow
.set_for_enum] for each value from that enumeration.
See also: [funcenumValueRowName
].
Since: 1.0
drop_closures_ComboRowGetEnumValueNameFunc :: ComboRowGetEnumValueNameFunc -> ComboRowGetEnumValueNameFunc_WithClosures Source #
A simple wrapper that ignores the closure arguments.
dynamic_ComboRowGetEnumValueNameFunc Source #
:: (HasCallStack, MonadIO m, IsEnumValueObject a) | |
=> FunPtr C_ComboRowGetEnumValueNameFunc | |
-> a |
|
-> Ptr () |
|
-> m Text | Returns: a displayable name that represents |
Given a pointer to a foreign C function, wrap it into a function callable from Haskell.
genClosure_ComboRowGetEnumValueNameFunc :: MonadIO m => ComboRowGetEnumValueNameFunc -> m (GClosure C_ComboRowGetEnumValueNameFunc) Source #
Wrap the callback into a GClosure
.
mk_ComboRowGetEnumValueNameFunc :: C_ComboRowGetEnumValueNameFunc -> IO (FunPtr C_ComboRowGetEnumValueNameFunc) Source #
Generate a function pointer callable from C code, from a C_ComboRowGetEnumValueNameFunc
.
noComboRowGetEnumValueNameFunc :: Maybe ComboRowGetEnumValueNameFunc Source #
A convenience synonym for
.Nothing
:: Maybe
ComboRowGetEnumValueNameFunc
noComboRowGetEnumValueNameFunc_WithClosures :: Maybe ComboRowGetEnumValueNameFunc_WithClosures Source #
A convenience synonym for
.Nothing
:: Maybe
ComboRowGetEnumValueNameFunc_WithClosures
wrap_ComboRowGetEnumValueNameFunc :: Maybe (Ptr (FunPtr C_ComboRowGetEnumValueNameFunc)) -> ComboRowGetEnumValueNameFunc_WithClosures -> C_ComboRowGetEnumValueNameFunc Source #
Wrap a ComboRowGetEnumValueNameFunc
into a C_ComboRowGetEnumValueNameFunc
.
ComboRowGetNameFunc
type C_ComboRowGetNameFunc = Ptr Object -> Ptr () -> IO CString Source #
Type for the callback on the (unwrapped) C side.
type ComboRowGetNameFunc Source #
= Object |
|
-> IO Text | Returns: a displayable name that represents |
Callback for getting the name of a row.
Called for combo rows that are bound to a ListModel
with
[methodcomboRow
.bind_name_model] for each item that gets added to the model.
Since: 1.0
type ComboRowGetNameFunc_WithClosures Source #
= Object |
|
-> Ptr () |
|
-> IO Text | Returns: a displayable name that represents |
Callback for getting the name of a row.
Called for combo rows that are bound to a ListModel
with
[methodcomboRow
.bind_name_model] for each item that gets added to the model.
Since: 1.0
drop_closures_ComboRowGetNameFunc :: ComboRowGetNameFunc -> ComboRowGetNameFunc_WithClosures Source #
A simple wrapper that ignores the closure arguments.
dynamic_ComboRowGetNameFunc Source #
:: (HasCallStack, MonadIO m, IsObject a) | |
=> FunPtr C_ComboRowGetNameFunc | |
-> a |
|
-> Ptr () |
|
-> m Text | Returns: a displayable name that represents |
Given a pointer to a foreign C function, wrap it into a function callable from Haskell.
genClosure_ComboRowGetNameFunc :: MonadIO m => ComboRowGetNameFunc -> m (GClosure C_ComboRowGetNameFunc) Source #
Wrap the callback into a GClosure
.
mk_ComboRowGetNameFunc :: C_ComboRowGetNameFunc -> IO (FunPtr C_ComboRowGetNameFunc) Source #
Generate a function pointer callable from C code, from a C_ComboRowGetNameFunc
.
noComboRowGetNameFunc :: Maybe ComboRowGetNameFunc Source #
A convenience synonym for
.Nothing
:: Maybe
ComboRowGetNameFunc
noComboRowGetNameFunc_WithClosures :: Maybe ComboRowGetNameFunc_WithClosures Source #
A convenience synonym for
.Nothing
:: Maybe
ComboRowGetNameFunc_WithClosures