CClosure

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

class CClosure {}

Constructors

this
this(GCClosure* gCClosure, bool ownedRef)

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, TypeInstance 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 marshaller for a #GCClosure with a callback of type gboolean (*callback) (gpointer instance, gint arg1, gpointer user_data) where the #gint parameter denotes a flags type.

marshalBOOLEANFLAGSv
void marshalBOOLEANFLAGSv(Closure closure, Value returnValue, TypeInstance 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, TypeInstance 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 marshaller for a #GCClosure with a callback of type gchar* (*callback) (gpointer instance, GObject *arg1, gpointer arg2, gpointer user_data).

marshalSTRINGOBJECTPOINTERv
void marshalSTRINGOBJECTPOINTERv(Closure closure, Value returnValue, TypeInstance 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 marshaller for a #GCClosure with a callback of type void (*callback) (gpointer instance, gboolean arg1, gpointer user_data).

marshalVOIDBOOLEANv
void marshalVOIDBOOLEANv(Closure closure, Value returnValue, TypeInstance 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 marshaller for a #GCClosure with a callback of type void (*callback) (gpointer instance, GBoxed *arg1, gpointer user_data).

marshalVOIDBOXEDv
void marshalVOIDBOXEDv(Closure closure, Value returnValue, TypeInstance 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 marshaller for a #GCClosure with a callback of type void (*callback) (gpointer instance, gchar arg1, gpointer user_data).

marshalVOIDCHARv
void marshalVOIDCHARv(Closure closure, Value returnValue, TypeInstance 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 marshaller for a #GCClosure with a callback of type void (*callback) (gpointer instance, gdouble arg1, gpointer user_data).

marshalVOIDDOUBLEv
void marshalVOIDDOUBLEv(Closure closure, Value returnValue, TypeInstance 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 marshaller for a #GCClosure with a callback of type void (*callback) (gpointer instance, gint arg1, gpointer user_data) where the #gint parameter denotes an enumeration type..

marshalVOIDENUMv
void marshalVOIDENUMv(Closure closure, Value returnValue, TypeInstance 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 marshaller for a #GCClosure with a callback of type void (*callback) (gpointer instance, gint arg1, gpointer user_data) where the #gint parameter denotes a flags type.

marshalVOIDFLAGSv
void marshalVOIDFLAGSv(Closure closure, Value returnValue, TypeInstance 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 marshaller for a #GCClosure with a callback of type void (*callback) (gpointer instance, gfloat arg1, gpointer user_data).

marshalVOIDFLOATv
void marshalVOIDFLOATv(Closure closure, Value returnValue, TypeInstance 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 marshaller for a #GCClosure with a callback of type void (*callback) (gpointer instance, gint arg1, gpointer user_data).

marshalVOIDINTv
void marshalVOIDINTv(Closure closure, Value returnValue, TypeInstance 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 marshaller for a #GCClosure with a callback of type void (*callback) (gpointer instance, glong arg1, gpointer user_data).

marshalVOIDLONGv
void marshalVOIDLONGv(Closure closure, Value returnValue, TypeInstance 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 marshaller for a #GCClosure with a callback of type void (*callback) (gpointer instance, GObject *arg1, gpointer user_data).

marshalVOIDOBJECTv
void marshalVOIDOBJECTv(Closure closure, Value returnValue, TypeInstance 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 marshaller for a #GCClosure with a callback of type void (*callback) (gpointer instance, GParamSpec *arg1, gpointer user_data).

marshalVOIDPARAMv
void marshalVOIDPARAMv(Closure closure, Value returnValue, TypeInstance 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 marshaller for a #GCClosure with a callback of type void (*callback) (gpointer instance, gpointer arg1, gpointer user_data).

marshalVOIDPOINTERv
void marshalVOIDPOINTERv(Closure closure, Value returnValue, TypeInstance 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 marshaller for a #GCClosure with a callback of type void (*callback) (gpointer instance, const gchar *arg1, gpointer user_data).

marshalVOIDSTRINGv
void marshalVOIDSTRINGv(Closure closure, Value returnValue, TypeInstance 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 marshaller for a #GCClosure with a callback of type void (*callback) (gpointer instance, guchar arg1, gpointer user_data).

marshalVOIDUCHARv
void marshalVOIDUCHARv(Closure closure, Value returnValue, TypeInstance 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 marshaller for a #GCClosure with a callback of type void (*callback) (gpointer instance, guint arg1, gpointer user_data).

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

A marshaller for a #GCClosure with a callback of type void (*callback) (gpointer instance, guint arg1, gpointer arg2, gpointer user_data).

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

The #GVaClosureMarshal equivalent to g_cclosure_marshal_VOID__UINT_POINTER().

marshalVOIDUINTv
void marshalVOIDUINTv(Closure closure, Value returnValue, TypeInstance 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 marshaller for a #GCClosure with a callback of type void (*callback) (gpointer instance, gulong arg1, gpointer user_data).

marshalVOIDULONGv
void marshalVOIDULONGv(Closure closure, Value returnValue, TypeInstance 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 marshaller for a #GCClosure with a callback of type void (*callback) (gpointer instance, GVariant *arg1, gpointer user_data).

marshalVOIDVARIANTv
void marshalVOIDVARIANTv(Closure closure, Value returnValue, TypeInstance 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 marshaller for a #GCClosure with a callback of type void (*callback) (gpointer instance, gpointer user_data).

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

The #GVaClosureMarshal equivalent to g_cclosure_marshal_VOID__VOID().

Variables

gCClosure
GCClosure* gCClosure;

the main Gtk struct

ownedRef
bool ownedRef;
Undocumented in source.

Meta