Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
Safe Haskell | None |
Language | Haskell2010 |
GI.GObject.Structs.CClosure
Contents
- 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
- newtype CClosure = CClosure (ManagedPtr CClosure)
- newZeroCClosure :: MonadIO m => m CClosure
- noCClosure :: Maybe CClosure
- cClosureMarshalBOOLEAN_BOXEDBOXED :: (HasCallStack, MonadIO m) => Closure -> GValue -> Word32 -> GValue -> Ptr () -> Ptr () -> m ()
- cClosureMarshalBOOLEAN_FLAGS :: (HasCallStack, MonadIO m) => Closure -> GValue -> Word32 -> GValue -> Ptr () -> Ptr () -> m ()
- cClosureMarshalGeneric :: (HasCallStack, MonadIO m) => Closure -> GValue -> Word32 -> GValue -> Ptr () -> Ptr () -> m ()
- cClosureMarshalSTRING_OBJECTPOINTER :: (HasCallStack, MonadIO m) => Closure -> GValue -> Word32 -> GValue -> Ptr () -> Ptr () -> m ()
- cClosureMarshalVOID_BOOLEAN :: (HasCallStack, MonadIO m) => Closure -> GValue -> Word32 -> GValue -> Ptr () -> Ptr () -> m ()
- cClosureMarshalVOID_BOXED :: (HasCallStack, MonadIO m) => Closure -> GValue -> Word32 -> GValue -> Ptr () -> Ptr () -> m ()
- cClosureMarshalVOID_CHAR :: (HasCallStack, MonadIO m) => Closure -> GValue -> Word32 -> GValue -> Ptr () -> Ptr () -> m ()
- cClosureMarshalVOID_DOUBLE :: (HasCallStack, MonadIO m) => Closure -> GValue -> Word32 -> GValue -> Ptr () -> Ptr () -> m ()
- cClosureMarshalVOID_ENUM :: (HasCallStack, MonadIO m) => Closure -> GValue -> Word32 -> GValue -> Ptr () -> Ptr () -> m ()
- cClosureMarshalVOID_FLAGS :: (HasCallStack, MonadIO m) => Closure -> GValue -> Word32 -> GValue -> Ptr () -> Ptr () -> m ()
- cClosureMarshalVOID_FLOAT :: (HasCallStack, MonadIO m) => Closure -> GValue -> Word32 -> GValue -> Ptr () -> Ptr () -> m ()
- cClosureMarshalVOID_INT :: (HasCallStack, MonadIO m) => Closure -> GValue -> Word32 -> GValue -> Ptr () -> Ptr () -> m ()
- cClosureMarshalVOID_LONG :: (HasCallStack, MonadIO m) => Closure -> GValue -> Word32 -> GValue -> Ptr () -> Ptr () -> m ()
- cClosureMarshalVOID_OBJECT :: (HasCallStack, MonadIO m) => Closure -> GValue -> Word32 -> GValue -> Ptr () -> Ptr () -> m ()
- cClosureMarshalVOID_PARAM :: (HasCallStack, MonadIO m) => Closure -> GValue -> Word32 -> GValue -> Ptr () -> Ptr () -> m ()
- cClosureMarshalVOID_POINTER :: (HasCallStack, MonadIO m) => Closure -> GValue -> Word32 -> GValue -> Ptr () -> Ptr () -> m ()
- cClosureMarshalVOID_STRING :: (HasCallStack, MonadIO m) => Closure -> GValue -> Word32 -> GValue -> Ptr () -> Ptr () -> m ()
- cClosureMarshalVOID_UCHAR :: (HasCallStack, MonadIO m) => Closure -> GValue -> Word32 -> GValue -> Ptr () -> Ptr () -> m ()
- cClosureMarshalVOID_UINT :: (HasCallStack, MonadIO m) => Closure -> GValue -> Word32 -> GValue -> Ptr () -> Ptr () -> m ()
- cClosureMarshalVOID_UINTPOINTER :: (HasCallStack, MonadIO m) => Closure -> GValue -> Word32 -> GValue -> Ptr () -> Ptr () -> m ()
- cClosureMarshalVOID_ULONG :: (HasCallStack, MonadIO m) => Closure -> GValue -> Word32 -> GValue -> Ptr () -> Ptr () -> m ()
- cClosureMarshalVOID_VARIANT :: (HasCallStack, MonadIO m) => Closure -> GValue -> Word32 -> GValue -> Ptr () -> Ptr () -> m ()
- cClosureMarshalVOID_VOID :: (HasCallStack, MonadIO m) => Closure -> GValue -> Word32 -> GValue -> Ptr () -> Ptr () -> m ()
- cClosure_callback :: AttrLabelProxy "callback"
- clearCClosureCallback :: MonadIO m => CClosure -> m ()
- getCClosureCallback :: MonadIO m => CClosure -> m (Ptr ())
- setCClosureCallback :: MonadIO m => CClosure -> Ptr () -> m ()
- cClosure_closure :: AttrLabelProxy "closure"
- getCClosureClosure :: MonadIO m => CClosure -> m Closure
Exported types
Constructors
CClosure (ManagedPtr CClosure) |
Instances
WrappedPtr CClosure # | |
(~) AttrOpTag tag AttrSet => Constructible CClosure tag # | |
((~) * info (ResolveCClosureMethod t CClosure), MethodInfo * info CClosure p) => IsLabel t (CClosure -> p) # | |
((~) * info (ResolveCClosureMethod t CClosure), MethodInfo * info CClosure p) => IsLabelProxy t (CClosure -> p) # | |
HasAttributeList * CClosure # | |
type AttributeList CClosure # | |
newZeroCClosure :: MonadIO m => m CClosure #
Construct a CClosure
struct initialized to zero.
noCClosure :: Maybe CClosure #
Methods
marshalBOOLEAN_BOXEDBOXED
cClosureMarshalBOOLEAN_BOXEDBOXED #
Arguments
:: (HasCallStack, MonadIO m) | |
=> Closure |
|
-> 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 #
Arguments
:: (HasCallStack, MonadIO m) | |
=> Closure |
|
-> GValue |
|
-> Word32 |
|
-> GValue |
|
-> Ptr () |
|
-> Ptr () |
|
-> m () |
A GClosureMarshal
function for use with signals with handlers that
take a flags type as an argument and return a boolean. If you have
such a signal, you will probably also need to use an accumulator,
such as signalAccumulatorTrueHandled
.
marshalGeneric
Arguments
:: (HasCallStack, MonadIO m) | |
=> Closure |
|
-> GValue |
|
-> Word32 |
|
-> GValue |
|
-> Ptr () |
|
-> Ptr () |
|
-> m () |
marshalSTRING_OBJECTPOINTER
cClosureMarshalSTRING_OBJECTPOINTER #
Arguments
:: (HasCallStack, MonadIO m) | |
=> Closure |
|
-> GValue |
|
-> Word32 |
|
-> GValue |
|
-> Ptr () |
|
-> Ptr () |
|
-> m () |
A GClosureMarshal
function for use with signals with handlers that
take a Object
and a pointer and produce a string. It is highly
unlikely that your signal handler fits this description.
marshalVOID_BOOLEAN
Arguments
:: (HasCallStack, MonadIO m) | |
=> Closure |
|
-> GValue |
|
-> Word32 |
|
-> GValue |
|
-> Ptr () |
|
-> Ptr () |
|
-> m () |
A GClosureMarshal
function for use with signals with a single
boolean argument.
marshalVOID_BOXED
Arguments
:: (HasCallStack, MonadIO m) | |
=> Closure |
|
-> GValue |
|
-> Word32 |
|
-> GValue |
|
-> Ptr () |
|
-> Ptr () |
|
-> m () |
A GClosureMarshal
function for use with signals with a single
argument which is any boxed pointer type.
marshalVOID_CHAR
Arguments
:: (HasCallStack, MonadIO m) | |
=> Closure |
|
-> GValue |
|
-> Word32 |
|
-> GValue |
|
-> Ptr () |
|
-> Ptr () |
|
-> m () |
A GClosureMarshal
function for use with signals with a single
character argument.
marshalVOID_DOUBLE
Arguments
:: (HasCallStack, MonadIO m) | |
=> Closure |
|
-> GValue |
|
-> Word32 |
|
-> GValue |
|
-> Ptr () |
|
-> Ptr () |
|
-> m () |
A GClosureMarshal
function for use with signals with one
double-precision floating point argument.
marshalVOID_ENUM
Arguments
:: (HasCallStack, MonadIO m) | |
=> Closure |
|
-> GValue |
|
-> Word32 |
|
-> GValue |
|
-> Ptr () |
|
-> Ptr () |
|
-> m () |
A GClosureMarshal
function for use with signals with a single
argument with an enumerated type.
marshalVOID_FLAGS
Arguments
:: (HasCallStack, MonadIO m) | |
=> Closure |
|
-> GValue |
|
-> Word32 |
|
-> GValue |
|
-> Ptr () |
|
-> Ptr () |
|
-> m () |
A GClosureMarshal
function for use with signals with a single
argument with a flags types.
marshalVOID_FLOAT
Arguments
:: (HasCallStack, MonadIO m) | |
=> Closure |
|
-> GValue |
|
-> Word32 |
|
-> GValue |
|
-> Ptr () |
|
-> Ptr () |
|
-> m () |
A GClosureMarshal
function for use with signals with one
single-precision floating point argument.
marshalVOID_INT
Arguments
:: (HasCallStack, MonadIO m) | |
=> Closure |
|
-> GValue |
|
-> Word32 |
|
-> GValue |
|
-> Ptr () |
|
-> Ptr () |
|
-> m () |
A GClosureMarshal
function for use with signals with a single
integer argument.
marshalVOID_LONG
Arguments
:: (HasCallStack, MonadIO m) | |
=> Closure |
|
-> GValue |
|
-> Word32 |
|
-> GValue |
|
-> Ptr () |
|
-> Ptr () |
|
-> m () |
A GClosureMarshal
function for use with signals with with a single
long integer argument.
marshalVOID_OBJECT
Arguments
:: (HasCallStack, MonadIO m) | |
=> Closure |
|
-> GValue |
|
-> Word32 |
|
-> GValue |
|
-> Ptr () |
|
-> Ptr () |
|
-> m () |
A GClosureMarshal
function for use with signals with a single
Object
argument.
marshalVOID_PARAM
Arguments
:: (HasCallStack, MonadIO m) | |
=> Closure |
|
-> GValue |
|
-> Word32 |
|
-> GValue |
|
-> Ptr () |
|
-> Ptr () |
|
-> m () |
A GClosureMarshal
function for use with signals with a single
argument of type ParamSpec
.
marshalVOID_POINTER
Arguments
:: (HasCallStack, MonadIO m) | |
=> Closure |
|
-> GValue |
|
-> Word32 |
|
-> GValue |
|
-> Ptr () |
|
-> Ptr () |
|
-> m () |
A GClosureMarshal
function for use with signals with a single raw
pointer argument type.
If it is possible, it is better to use one of the more specific
functions such as cclosureMarshalVOID_OBJECT
or
cclosureMarshalVOID_OBJECT
.
marshalVOID_STRING
Arguments
:: (HasCallStack, MonadIO m) | |
=> Closure |
|
-> GValue |
|
-> Word32 |
|
-> GValue |
|
-> Ptr () |
|
-> Ptr () |
|
-> m () |
A GClosureMarshal
function for use with signals with a single string
argument.
marshalVOID_UCHAR
Arguments
:: (HasCallStack, MonadIO m) | |
=> Closure |
|
-> GValue |
|
-> Word32 |
|
-> GValue |
|
-> Ptr () |
|
-> Ptr () |
|
-> m () |
A GClosureMarshal
function for use with signals with a single
unsigned character argument.
marshalVOID_UINT
Arguments
:: (HasCallStack, MonadIO m) | |
=> Closure |
|
-> GValue |
|
-> Word32 |
|
-> GValue |
|
-> Ptr () |
|
-> Ptr () |
|
-> m () |
A GClosureMarshal
function for use with signals with with a single
unsigned integer argument.
marshalVOID_UINTPOINTER
cClosureMarshalVOID_UINTPOINTER #
Arguments
:: (HasCallStack, MonadIO m) | |
=> Closure |
|
-> GValue |
|
-> Word32 |
|
-> GValue |
|
-> Ptr () |
|
-> Ptr () |
|
-> m () |
A GClosureMarshal
function for use with signals with a unsigned int
and a pointer as arguments.
marshalVOID_ULONG
Arguments
:: (HasCallStack, MonadIO m) | |
=> Closure |
|
-> GValue |
|
-> Word32 |
|
-> GValue |
|
-> Ptr () |
|
-> Ptr () |
|
-> m () |
A GClosureMarshal
function for use with signals with a single
unsigned long integer argument.
marshalVOID_VARIANT
Arguments
:: (HasCallStack, MonadIO m) | |
=> Closure |
|
-> GValue |
|
-> Word32 |
|
-> GValue |
|
-> Ptr () |
|
-> Ptr () |
|
-> m () |
A GClosureMarshal
function for use with signals with a single
GVariant
argument.
marshalVOID_VOID
Arguments
:: (HasCallStack, MonadIO m) | |
=> Closure |
|
-> GValue |
|
-> Word32 |
|
-> GValue |
|
-> Ptr () |
|
-> Ptr () |
|
-> m () |
A GClosureMarshal
function for use with signals with no arguments.
Properties
callback
cClosure_callback :: AttrLabelProxy "callback" #
clearCClosureCallback :: MonadIO m => CClosure -> m () #
getCClosureCallback :: MonadIO m => CClosure -> m (Ptr ()) #
setCClosureCallback :: MonadIO m => CClosure -> Ptr () -> m () #
closure
cClosure_closure :: AttrLabelProxy "closure" #
getCClosureClosure :: MonadIO m => CClosure -> m Closure #