Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (inaki@blueleaf.cc) |
Safe Haskell | None |
Language | Haskell2010 |
- Exported types
- Methods
- marshalBOOLEAN_BOXEDBOXED
- marshalBOOLEAN_FLAGS
- marshalGeneric
- marshalSTRING_OBJECTPOINTER
- marshalVOID_BOOLEAN
- marshalVOID_BOXED
- marshalVOID_CHAR
- marshalVOID_DOUBLE
- marshalVOID_ENUM
- marshalVOID_FLAGS
- marshalVOID_FLOAT
- marshalVOID_INT
- marshalVOID_LONG
- marshalVOID_OBJECT
- marshalVOID_PARAM
- marshalVOID_POINTER
- marshalVOID_STRING
- marshalVOID_UCHAR
- marshalVOID_UINT
- marshalVOID_UINTPOINTER
- marshalVOID_ULONG
- marshalVOID_VARIANT
- marshalVOID_VOID
- Properties
Synopsis
- newtype CClosure = CClosure (ManagedPtr CClosure)
- newZeroCClosure :: MonadIO m => m CClosure
- noCClosure :: Maybe CClosure
- cClosureMarshalBOOLEAN_BOXEDBOXED :: (HasCallStack, MonadIO m) => GClosure a -> GValue -> Word32 -> GValue -> Ptr () -> Ptr () -> m ()
- cClosureMarshalBOOLEAN_FLAGS :: (HasCallStack, MonadIO m) => GClosure a -> GValue -> Word32 -> GValue -> Ptr () -> Ptr () -> m ()
- cClosureMarshalGeneric :: (HasCallStack, MonadIO m) => GClosure a -> GValue -> Word32 -> GValue -> Ptr () -> Ptr () -> m ()
- cClosureMarshalSTRING_OBJECTPOINTER :: (HasCallStack, MonadIO m) => GClosure a -> GValue -> Word32 -> GValue -> Ptr () -> Ptr () -> m ()
- cClosureMarshalVOID_BOOLEAN :: (HasCallStack, MonadIO m) => GClosure a -> GValue -> Word32 -> GValue -> Ptr () -> Ptr () -> m ()
- cClosureMarshalVOID_BOXED :: (HasCallStack, MonadIO m) => GClosure a -> GValue -> Word32 -> GValue -> Ptr () -> Ptr () -> m ()
- cClosureMarshalVOID_CHAR :: (HasCallStack, MonadIO m) => GClosure a -> GValue -> Word32 -> GValue -> Ptr () -> Ptr () -> m ()
- cClosureMarshalVOID_DOUBLE :: (HasCallStack, MonadIO m) => GClosure a -> GValue -> Word32 -> GValue -> Ptr () -> Ptr () -> m ()
- cClosureMarshalVOID_ENUM :: (HasCallStack, MonadIO m) => GClosure a -> GValue -> Word32 -> GValue -> Ptr () -> Ptr () -> m ()
- cClosureMarshalVOID_FLAGS :: (HasCallStack, MonadIO m) => GClosure a -> GValue -> Word32 -> GValue -> Ptr () -> Ptr () -> m ()
- cClosureMarshalVOID_FLOAT :: (HasCallStack, MonadIO m) => GClosure a -> GValue -> Word32 -> GValue -> Ptr () -> Ptr () -> m ()
- cClosureMarshalVOID_INT :: (HasCallStack, MonadIO m) => GClosure a -> GValue -> Word32 -> GValue -> Ptr () -> Ptr () -> m ()
- cClosureMarshalVOID_LONG :: (HasCallStack, MonadIO m) => GClosure a -> GValue -> Word32 -> GValue -> Ptr () -> Ptr () -> m ()
- cClosureMarshalVOID_OBJECT :: (HasCallStack, MonadIO m) => GClosure a -> GValue -> Word32 -> GValue -> Ptr () -> Ptr () -> m ()
- cClosureMarshalVOID_PARAM :: (HasCallStack, MonadIO m) => GClosure a -> GValue -> Word32 -> GValue -> Ptr () -> Ptr () -> m ()
- cClosureMarshalVOID_POINTER :: (HasCallStack, MonadIO m) => GClosure a -> GValue -> Word32 -> GValue -> Ptr () -> Ptr () -> m ()
- cClosureMarshalVOID_STRING :: (HasCallStack, MonadIO m) => GClosure a -> GValue -> Word32 -> GValue -> Ptr () -> Ptr () -> m ()
- cClosureMarshalVOID_UCHAR :: (HasCallStack, MonadIO m) => GClosure a -> GValue -> Word32 -> GValue -> Ptr () -> Ptr () -> m ()
- cClosureMarshalVOID_UINT :: (HasCallStack, MonadIO m) => GClosure a -> GValue -> Word32 -> GValue -> Ptr () -> Ptr () -> m ()
- cClosureMarshalVOID_UINTPOINTER :: (HasCallStack, MonadIO m) => GClosure a -> GValue -> Word32 -> GValue -> Ptr () -> Ptr () -> m ()
- cClosureMarshalVOID_ULONG :: (HasCallStack, MonadIO m) => GClosure a -> GValue -> Word32 -> GValue -> Ptr () -> Ptr () -> m ()
- cClosureMarshalVOID_VARIANT :: (HasCallStack, MonadIO m) => GClosure a -> GValue -> Word32 -> GValue -> Ptr () -> Ptr () -> m ()
- cClosureMarshalVOID_VOID :: (HasCallStack, MonadIO m) => GClosure a -> GValue -> Word32 -> GValue -> Ptr () -> Ptr () -> m ()
- clearCClosureCallback :: MonadIO m => CClosure -> m ()
- getCClosureCallback :: MonadIO m => CClosure -> m (Ptr ())
- setCClosureCallback :: MonadIO m => CClosure -> Ptr () -> m ()
- clearCClosureClosure :: MonadIO m => CClosure -> m ()
- getCClosureClosure :: MonadIO m => CClosure -> m (Maybe (GClosure ()))
- setCClosureClosure :: MonadIO m => CClosure -> Ptr (GClosure ()) -> m ()
Exported types
Memory-managed wrapper type.
Instances
WrappedPtr CClosure Source # | |
Defined in GI.GObject.Structs.CClosure wrappedPtrCalloc :: IO (Ptr CClosure) # wrappedPtrCopy :: CClosure -> IO CClosure # | |
tag ~ AttrSet => Constructible CClosure tag Source # | |
Defined in GI.GObject.Structs.CClosure |
Methods
marshalBOOLEAN_BOXEDBOXED
cClosureMarshalBOOLEAN_BOXEDBOXED Source #
:: (HasCallStack, MonadIO m) | |
=> GClosure a |
|
-> GValue |
|
-> Word32 |
|
-> GValue |
|
-> Ptr () |
|
-> Ptr () |
|
-> m () |
A GClosureMarshal
function for use with signals with handlers that
take two boxed pointers as arguments and return a boolean. If you
have such a signal, you will probably also need to use an
accumulator, such as signalAccumulatorTrueHandled
.
marshalBOOLEAN_FLAGS
cClosureMarshalBOOLEAN_FLAGS Source #
:: (HasCallStack, MonadIO m) | |
=> GClosure a |
|
-> GValue | |
-> Word32 |
|
-> GValue |
|
-> Ptr () |
|
-> Ptr () |
|
-> m () |
A marshaller for a CClosure
with a callback of type
gboolean (*callback) (gpointer instance, gint arg1, gpointer user_data)
where the gint
parameter
denotes a flags type.
marshalGeneric
cClosureMarshalGeneric Source #
:: (HasCallStack, MonadIO m) | |
=> GClosure a |
|
-> GValue |
|
-> Word32 |
|
-> GValue |
|
-> Ptr () |
|
-> Ptr () |
|
-> m () |
marshalSTRING_OBJECTPOINTER
cClosureMarshalSTRING_OBJECTPOINTER Source #
:: (HasCallStack, MonadIO m) | |
=> GClosure a |
|
-> GValue |
|
-> Word32 |
|
-> GValue |
|
-> Ptr () |
|
-> Ptr () |
|
-> m () |
A marshaller for a CClosure
with a callback of type
gchar* (*callback) (gpointer instance, GObject *arg1, gpointer arg2, gpointer user_data)
.
marshalVOID_BOOLEAN
cClosureMarshalVOID_BOOLEAN Source #
:: (HasCallStack, MonadIO m) | |
=> GClosure a |
|
-> GValue |
|
-> Word32 |
|
-> GValue |
|
-> Ptr () |
|
-> Ptr () |
|
-> m () |
A marshaller for a CClosure
with a callback of type
void (*callback) (gpointer instance, gboolean arg1, gpointer user_data)
.
marshalVOID_BOXED
cClosureMarshalVOID_BOXED Source #
:: (HasCallStack, MonadIO m) | |
=> GClosure a |
|
-> GValue |
|
-> Word32 |
|
-> GValue |
|
-> Ptr () |
|
-> Ptr () |
|
-> m () |
A marshaller for a CClosure
with a callback of type
void (*callback) (gpointer instance, GBoxed *arg1, gpointer user_data)
.
marshalVOID_CHAR
cClosureMarshalVOID_CHAR Source #
:: (HasCallStack, MonadIO m) | |
=> GClosure a |
|
-> GValue |
|
-> Word32 |
|
-> GValue |
|
-> Ptr () |
|
-> Ptr () |
|
-> m () |
A marshaller for a CClosure
with a callback of type
void (*callback) (gpointer instance, gchar arg1, gpointer user_data)
.
marshalVOID_DOUBLE
cClosureMarshalVOID_DOUBLE Source #
:: (HasCallStack, MonadIO m) | |
=> GClosure a |
|
-> GValue |
|
-> Word32 |
|
-> GValue |
|
-> Ptr () |
|
-> Ptr () |
|
-> m () |
A marshaller for a CClosure
with a callback of type
void (*callback) (gpointer instance, gdouble arg1, gpointer user_data)
.
marshalVOID_ENUM
cClosureMarshalVOID_ENUM Source #
:: (HasCallStack, MonadIO m) | |
=> GClosure a |
|
-> GValue |
|
-> Word32 |
|
-> GValue |
|
-> Ptr () |
|
-> Ptr () |
|
-> m () |
A marshaller for a CClosure
with a callback of type
void (*callback) (gpointer instance, gint arg1, gpointer user_data)
where the gint
parameter denotes an enumeration type..
marshalVOID_FLAGS
cClosureMarshalVOID_FLAGS Source #
:: (HasCallStack, MonadIO m) | |
=> GClosure a |
|
-> GValue |
|
-> Word32 |
|
-> GValue |
|
-> Ptr () |
|
-> Ptr () |
|
-> m () |
A marshaller for a CClosure
with a callback of type
void (*callback) (gpointer instance, gint arg1, gpointer user_data)
where the gint
parameter denotes a flags type.
marshalVOID_FLOAT
cClosureMarshalVOID_FLOAT Source #
:: (HasCallStack, MonadIO m) | |
=> GClosure a |
|
-> GValue |
|
-> Word32 |
|
-> GValue |
|
-> Ptr () |
|
-> Ptr () |
|
-> m () |
A marshaller for a CClosure
with a callback of type
void (*callback) (gpointer instance, gfloat arg1, gpointer user_data)
.
marshalVOID_INT
cClosureMarshalVOID_INT Source #
:: (HasCallStack, MonadIO m) | |
=> GClosure a |
|
-> GValue |
|
-> Word32 |
|
-> GValue |
|
-> Ptr () |
|
-> Ptr () |
|
-> m () |
A marshaller for a CClosure
with a callback of type
void (*callback) (gpointer instance, gint arg1, gpointer user_data)
.
marshalVOID_LONG
cClosureMarshalVOID_LONG Source #
:: (HasCallStack, MonadIO m) | |
=> GClosure a |
|
-> GValue |
|
-> Word32 |
|
-> GValue |
|
-> Ptr () |
|
-> Ptr () |
|
-> m () |
A marshaller for a CClosure
with a callback of type
void (*callback) (gpointer instance, glong arg1, gpointer user_data)
.
marshalVOID_OBJECT
cClosureMarshalVOID_OBJECT Source #
:: (HasCallStack, MonadIO m) | |
=> GClosure a |
|
-> GValue |
|
-> Word32 |
|
-> GValue |
|
-> Ptr () |
|
-> Ptr () |
|
-> m () |
A marshaller for a CClosure
with a callback of type
void (*callback) (gpointer instance, GObject *arg1, gpointer user_data)
.
marshalVOID_PARAM
cClosureMarshalVOID_PARAM Source #
:: (HasCallStack, MonadIO m) | |
=> GClosure a |
|
-> GValue |
|
-> Word32 |
|
-> GValue |
|
-> Ptr () |
|
-> Ptr () |
|
-> m () |
A marshaller for a CClosure
with a callback of type
void (*callback) (gpointer instance, GParamSpec *arg1, gpointer user_data)
.
marshalVOID_POINTER
cClosureMarshalVOID_POINTER Source #
:: (HasCallStack, MonadIO m) | |
=> GClosure a |
|
-> GValue |
|
-> Word32 |
|
-> GValue |
|
-> Ptr () |
|
-> Ptr () |
|
-> m () |
A marshaller for a CClosure
with a callback of type
void (*callback) (gpointer instance, gpointer arg1, gpointer user_data)
.
marshalVOID_STRING
cClosureMarshalVOID_STRING Source #
:: (HasCallStack, MonadIO m) | |
=> GClosure a |
|
-> GValue |
|
-> Word32 |
|
-> GValue |
|
-> Ptr () |
|
-> Ptr () |
|
-> m () |
A marshaller for a CClosure
with a callback of type
void (*callback) (gpointer instance, const gchar *arg1, gpointer user_data)
.
marshalVOID_UCHAR
cClosureMarshalVOID_UCHAR Source #
:: (HasCallStack, MonadIO m) | |
=> GClosure a |
|
-> GValue |
|
-> Word32 |
|
-> GValue |
|
-> Ptr () |
|
-> Ptr () |
|
-> m () |
A marshaller for a CClosure
with a callback of type
void (*callback) (gpointer instance, guchar arg1, gpointer user_data)
.
marshalVOID_UINT
cClosureMarshalVOID_UINT Source #
:: (HasCallStack, MonadIO m) | |
=> GClosure a |
|
-> GValue |
|
-> Word32 |
|
-> GValue |
|
-> Ptr () |
|
-> Ptr () |
|
-> m () |
A marshaller for a CClosure
with a callback of type
void (*callback) (gpointer instance, guint arg1, gpointer user_data)
.
marshalVOID_UINTPOINTER
cClosureMarshalVOID_UINTPOINTER Source #
:: (HasCallStack, MonadIO m) | |
=> GClosure a |
|
-> GValue |
|
-> Word32 |
|
-> GValue |
|
-> Ptr () |
|
-> Ptr () |
|
-> m () |
A marshaller for a CClosure
with a callback of type
void (*callback) (gpointer instance, guint arg1, gpointer arg2, gpointer user_data)
.
marshalVOID_ULONG
cClosureMarshalVOID_ULONG Source #
:: (HasCallStack, MonadIO m) | |
=> GClosure a |
|
-> GValue |
|
-> Word32 |
|
-> GValue |
|
-> Ptr () |
|
-> Ptr () |
|
-> m () |
A marshaller for a CClosure
with a callback of type
void (*callback) (gpointer instance, gulong arg1, gpointer user_data)
.
marshalVOID_VARIANT
cClosureMarshalVOID_VARIANT Source #
:: (HasCallStack, MonadIO m) | |
=> GClosure a |
|
-> GValue |
|
-> Word32 |
|
-> GValue |
|
-> Ptr () |
|
-> Ptr () |
|
-> m () |
A marshaller for a CClosure
with a callback of type
void (*callback) (gpointer instance, GVariant *arg1, gpointer user_data)
.
Since: 2.26
marshalVOID_VOID
cClosureMarshalVOID_VOID Source #
:: (HasCallStack, MonadIO m) | |
=> GClosure a |
|
-> GValue |
|
-> Word32 |
|
-> GValue |
|
-> Ptr () |
|
-> Ptr () |
|
-> m () |
A marshaller for a CClosure
with a callback of type
void (*callback) (gpointer instance, gpointer user_data)
.
Properties
callback
the callback function
clearCClosureCallback :: MonadIO m => CClosure -> m () Source #
Set the value of the “callback
” field to Nothing
.
When overloading is enabled, this is equivalent to
clear
#callback
getCClosureCallback :: MonadIO m => CClosure -> m (Ptr ()) Source #
Get the value of the “callback
” field.
When overloading is enabled, this is equivalent to
get
cClosure #callback
setCClosureCallback :: MonadIO m => CClosure -> Ptr () -> m () Source #
Set the value of the “callback
” field.
When overloading is enabled, this is equivalent to
set
cClosure [ #callback:=
value ]
closure
the Closure
clearCClosureClosure :: MonadIO m => CClosure -> m () Source #
Set the value of the “closure
” field to Nothing
.
When overloading is enabled, this is equivalent to
clear
#closure
getCClosureClosure :: MonadIO m => CClosure -> m (Maybe (GClosure ())) Source #
Get the value of the “closure
” field.
When overloading is enabled, this is equivalent to
get
cClosure #closure
setCClosureClosure :: MonadIO m => CClosure -> Ptr (GClosure ()) -> m () Source #
Set the value of the “closure
” field.
When overloading is enabled, this is equivalent to
set
cClosure [ #closure:=
value ]