CClosure

A #GCClosure is a specialization of #GClosure for C function callbacks.

class CClosure {}

Constructors

this
this(GCClosure* gCClosure)

Sets our main struct and passes it to the parent class.

this
this(GCallback callbackFunc, void* userData, GClosureNotify destroyData, bool swap)

Creates a new closure which invokes callbackFunc with userData as the last parameter.

this
this(GCallback callbackFunc, ObjectG object, bool swap)

A variant of this() which uses object as userData and calls ObjectG.watchClosure() on object and the created closure. This function is useful when you have a callback closely associated with a gobject.ObjectG, and want the callback to no longer run after the object is is freed.

Members

Functions

getCClosureStruct
GCClosure* getCClosureStruct()

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

Static functions

marshalBOOLEANBOXEDBOXED
void marshalBOOLEANBOXEDBOXED(Closure closure, Value returnValue, uint nParamValues, Value paramValues, void* invocationHint, void* marshalData)

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 g_signal_accumulator_true_handled().

marshalBOOLEANBOXEDBOXEDv
void marshalBOOLEANBOXEDBOXEDv(Closure closure, Value returnValue, void* instanc, void* args, void* marshalData, GType[] paramTypes)

The #GVaClosureMarshal equivalent to g_cclosure_marshal_BOOLEAN__BOXED_BOXED().

marshalBOOLEANFLAGS
void marshalBOOLEANFLAGS(Closure closure, Value returnValue, uint nParamValues, Value paramValues, void* invocationHint, void* marshalData)

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 g_signal_accumulator_true_handled().

marshalBOOLEANFLAGSv
void marshalBOOLEANFLAGSv(Closure closure, Value returnValue, void* instanc, void* args, void* marshalData, GType[] paramTypes)

The #GVaClosureMarshal equivalent to g_cclosure_marshal_BOOLEAN__FLAGS().

marshalGeneric
void marshalGeneric(Closure closure, Value returnGvalue, uint nParamValues, Value paramValues, void* invocationHint, void* marshalData)

A generic marshaller function implemented via libffi.

marshalGenericVa
void marshalGenericVa(Closure closure, Value returnValue, void* instanc, void* argsList, void* marshalData, GType[] paramTypes)

A generic #GVaClosureMarshal function implemented via libffi.

marshalSTRINGOBJECTPOINTER
void marshalSTRINGOBJECTPOINTER(Closure closure, Value returnValue, uint nParamValues, Value paramValues, void* invocationHint, void* marshalData)

A #GClosureMarshal function for use with signals with handlers that take a #GObject and a pointer and produce a string. It is highly unlikely that your signal handler fits this description.

marshalSTRINGOBJECTPOINTERv
void marshalSTRINGOBJECTPOINTERv(Closure closure, Value returnValue, void* instanc, void* args, void* marshalData, GType[] paramTypes)

The #GVaClosureMarshal equivalent to g_cclosure_marshal_STRING__OBJECT_POINTER().

marshalVOIDBOOLEAN
void marshalVOIDBOOLEAN(Closure closure, Value returnValue, uint nParamValues, Value paramValues, void* invocationHint, void* marshalData)

A #GClosureMarshal function for use with signals with a single boolean argument.

marshalVOIDBOOLEANv
void marshalVOIDBOOLEANv(Closure closure, Value returnValue, void* instanc, void* args, void* marshalData, GType[] paramTypes)

The #GVaClosureMarshal equivalent to g_cclosure_marshal_VOID__BOOLEAN().

marshalVOIDBOXED
void marshalVOIDBOXED(Closure closure, Value returnValue, uint nParamValues, Value paramValues, void* invocationHint, void* marshalData)

A #GClosureMarshal function for use with signals with a single argument which is any boxed pointer type.

marshalVOIDBOXEDv
void marshalVOIDBOXEDv(Closure closure, Value returnValue, void* instanc, void* args, void* marshalData, GType[] paramTypes)

The #GVaClosureMarshal equivalent to g_cclosure_marshal_VOID__BOXED().

marshalVOIDCHAR
void marshalVOIDCHAR(Closure closure, Value returnValue, uint nParamValues, Value paramValues, void* invocationHint, void* marshalData)

A #GClosureMarshal function for use with signals with a single character argument.

marshalVOIDCHARv
void marshalVOIDCHARv(Closure closure, Value returnValue, void* instanc, void* args, void* marshalData, GType[] paramTypes)

The #GVaClosureMarshal equivalent to g_cclosure_marshal_VOID__CHAR().

marshalVOIDDOUBLE
void marshalVOIDDOUBLE(Closure closure, Value returnValue, uint nParamValues, Value paramValues, void* invocationHint, void* marshalData)

A #GClosureMarshal function for use with signals with one double-precision floating point argument.

marshalVOIDDOUBLEv
void marshalVOIDDOUBLEv(Closure closure, Value returnValue, void* instanc, void* args, void* marshalData, GType[] paramTypes)

The #GVaClosureMarshal equivalent to g_cclosure_marshal_VOID__DOUBLE().

marshalVOIDENUM
void marshalVOIDENUM(Closure closure, Value returnValue, uint nParamValues, Value paramValues, void* invocationHint, void* marshalData)

A #GClosureMarshal function for use with signals with a single argument with an enumerated type.

marshalVOIDENUMv
void marshalVOIDENUMv(Closure closure, Value returnValue, void* instanc, void* args, void* marshalData, GType[] paramTypes)

The #GVaClosureMarshal equivalent to g_cclosure_marshal_VOID__ENUM().

marshalVOIDFLAGS
void marshalVOIDFLAGS(Closure closure, Value returnValue, uint nParamValues, Value paramValues, void* invocationHint, void* marshalData)

A #GClosureMarshal function for use with signals with a single argument with a flags types.

marshalVOIDFLAGSv
void marshalVOIDFLAGSv(Closure closure, Value returnValue, void* instanc, void* args, void* marshalData, GType[] paramTypes)

The #GVaClosureMarshal equivalent to g_cclosure_marshal_VOID__FLAGS().

marshalVOIDFLOAT
void marshalVOIDFLOAT(Closure closure, Value returnValue, uint nParamValues, Value paramValues, void* invocationHint, void* marshalData)

A #GClosureMarshal function for use with signals with one single-precision floating point argument.

marshalVOIDFLOATv
void marshalVOIDFLOATv(Closure closure, Value returnValue, void* instanc, void* args, void* marshalData, GType[] paramTypes)

The #GVaClosureMarshal equivalent to g_cclosure_marshal_VOID__FLOAT().

marshalVOIDINT
void marshalVOIDINT(Closure closure, Value returnValue, uint nParamValues, Value paramValues, void* invocationHint, void* marshalData)

A #GClosureMarshal function for use with signals with a single integer argument.

marshalVOIDINTv
void marshalVOIDINTv(Closure closure, Value returnValue, void* instanc, void* args, void* marshalData, GType[] paramTypes)

The #GVaClosureMarshal equivalent to g_cclosure_marshal_VOID__INT().

marshalVOIDLONG
void marshalVOIDLONG(Closure closure, Value returnValue, uint nParamValues, Value paramValues, void* invocationHint, void* marshalData)

A #GClosureMarshal function for use with signals with with a single long integer argument.

marshalVOIDLONGv
void marshalVOIDLONGv(Closure closure, Value returnValue, void* instanc, void* args, void* marshalData, GType[] paramTypes)

The #GVaClosureMarshal equivalent to g_cclosure_marshal_VOID__LONG().

marshalVOIDOBJECT
void marshalVOIDOBJECT(Closure closure, Value returnValue, uint nParamValues, Value paramValues, void* invocationHint, void* marshalData)

A #GClosureMarshal function for use with signals with a single #GObject argument.

marshalVOIDOBJECTv
void marshalVOIDOBJECTv(Closure closure, Value returnValue, void* instanc, void* args, void* marshalData, GType[] paramTypes)

The #GVaClosureMarshal equivalent to g_cclosure_marshal_VOID__OBJECT().

marshalVOIDPARAM
void marshalVOIDPARAM(Closure closure, Value returnValue, uint nParamValues, Value paramValues, void* invocationHint, void* marshalData)

A #GClosureMarshal function for use with signals with a single argument of type #GParamSpec.

marshalVOIDPARAMv
void marshalVOIDPARAMv(Closure closure, Value returnValue, void* instanc, void* args, void* marshalData, GType[] paramTypes)

The #GVaClosureMarshal equivalent to g_cclosure_marshal_VOID__PARAM().

marshalVOIDPOINTER
void marshalVOIDPOINTER(Closure closure, Value returnValue, uint nParamValues, Value paramValues, void* invocationHint, void* marshalData)

A #GClosureMarshal function for use with signals with a single raw pointer argument type.

marshalVOIDPOINTERv
void marshalVOIDPOINTERv(Closure closure, Value returnValue, void* instanc, void* args, void* marshalData, GType[] paramTypes)

The #GVaClosureMarshal equivalent to g_cclosure_marshal_VOID__POINTER().

marshalVOIDSTRING
void marshalVOIDSTRING(Closure closure, Value returnValue, uint nParamValues, Value paramValues, void* invocationHint, void* marshalData)

A #GClosureMarshal function for use with signals with a single string argument.

marshalVOIDSTRINGv
void marshalVOIDSTRINGv(Closure closure, Value returnValue, void* instanc, void* args, void* marshalData, GType[] paramTypes)

The #GVaClosureMarshal equivalent to g_cclosure_marshal_VOID__STRING().

marshalVOIDUCHAR
void marshalVOIDUCHAR(Closure closure, Value returnValue, uint nParamValues, Value paramValues, void* invocationHint, void* marshalData)

A #GClosureMarshal function for use with signals with a single unsigned character argument.

marshalVOIDUCHARv
void marshalVOIDUCHARv(Closure closure, Value returnValue, void* instanc, void* args, void* marshalData, GType[] paramTypes)

The #GVaClosureMarshal equivalent to g_cclosure_marshal_VOID__UCHAR().

marshalVOIDUINT
void marshalVOIDUINT(Closure closure, Value returnValue, uint nParamValues, Value paramValues, void* invocationHint, void* marshalData)

A #GClosureMarshal function for use with signals with with a single unsigned integer argument.

marshalVOIDUINTPOINTER
void marshalVOIDUINTPOINTER(Closure closure, Value returnValue, uint nParamValues, Value paramValues, void* invocationHint, void* marshalData)

A #GClosureMarshal function for use with signals with a unsigned int and a pointer as arguments.

marshalVOIDUINTPOINTERv
void marshalVOIDUINTPOINTERv(Closure closure, Value returnValue, void* instanc, void* args, void* marshalData, GType[] paramTypes)

The #GVaClosureMarshal equivalent to g_cclosure_marshal_VOID__UINT_POINTER().

marshalVOIDUINTv
void marshalVOIDUINTv(Closure closure, Value returnValue, void* instanc, void* args, void* marshalData, GType[] paramTypes)

The #GVaClosureMarshal equivalent to g_cclosure_marshal_VOID__UINT().

marshalVOIDULONG
void marshalVOIDULONG(Closure closure, Value returnValue, uint nParamValues, Value paramValues, void* invocationHint, void* marshalData)

A #GClosureMarshal function for use with signals with a single unsigned long integer argument.

marshalVOIDULONGv
void marshalVOIDULONGv(Closure closure, Value returnValue, void* instanc, void* args, void* marshalData, GType[] paramTypes)

The #GVaClosureMarshal equivalent to g_cclosure_marshal_VOID__ULONG().

marshalVOIDVARIANT
void marshalVOIDVARIANT(Closure closure, Value returnValue, uint nParamValues, Value paramValues, void* invocationHint, void* marshalData)

A #GClosureMarshal function for use with signals with a single #GVariant argument.

marshalVOIDVARIANTv
void marshalVOIDVARIANTv(Closure closure, Value returnValue, void* instanc, void* args, void* marshalData, GType[] paramTypes)

The #GVaClosureMarshal equivalent to g_cclosure_marshal_VOID__VARIANT().

marshalVOIDVOID
void marshalVOIDVOID(Closure closure, Value returnValue, uint nParamValues, Value paramValues, void* invocationHint, void* marshalData)

A #GClosureMarshal function for use with signals with no arguments.

marshalVOIDVOIDv
void marshalVOIDVOIDv(Closure closure, Value returnValue, void* instanc, void* args, void* marshalData, GType[] paramTypes)

The #GVaClosureMarshal equivalent to g_cclosure_marshal_VOID__VOID().

Variables

gCClosure
GCClosure* gCClosure;

the main Gtk struct

Meta