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)
marshalBOOLEANBOXEDBOXEDv
void marshalBOOLEANBOXEDBOXEDv(Closure closure, Value returnValue, void* instanc, void* args, void* marshalData, int nParams, GType* paramTypes)
Undocumented in source. Be warned that the author may not have intended to support it.
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, void* instanc, void* args, void* marshalData, int nParams, GType* paramTypes)
Undocumented in source. Be warned that the author may not have intended to support it.
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, int nParams, GType* paramTypes)
Undocumented in source. Be warned that the author may not have intended to support it.
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, void* instanc, void* args, void* marshalData, int nParams, GType* paramTypes)
Undocumented in source. Be warned that the author may not have intended to support it.
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, void* instanc, void* args, void* marshalData, int nParams, GType* paramTypes)
Undocumented in source. Be warned that the author may not have intended to support it.
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, void* instanc, void* args, void* marshalData, int nParams, GType* paramTypes)
Undocumented in source. Be warned that the author may not have intended to support it.
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, void* instanc, void* args, void* marshalData, int nParams, GType* paramTypes)
Undocumented in source. Be warned that the author may not have intended to support it.
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, void* instanc, void* args, void* marshalData, int nParams, GType* paramTypes)
Undocumented in source. Be warned that the author may not have intended to support it.
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, void* instanc, void* args, void* marshalData, int nParams, GType* paramTypes)
Undocumented in source. Be warned that the author may not have intended to support it.
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, void* instanc, void* args, void* marshalData, int nParams, GType* paramTypes)
Undocumented in source. Be warned that the author may not have intended to support it.
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, void* instanc, void* args, void* marshalData, int nParams, GType* paramTypes)
Undocumented in source. Be warned that the author may not have intended to support it.
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, void* instanc, void* args, void* marshalData, int nParams, GType* paramTypes)
Undocumented in source. Be warned that the author may not have intended to support it.
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, void* instanc, void* args, void* marshalData, int nParams, GType* paramTypes)
Undocumented in source. Be warned that the author may not have intended to support it.
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, void* instanc, void* args, void* marshalData, int nParams, GType* paramTypes)
Undocumented in source. Be warned that the author may not have intended to support it.
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, void* instanc, void* args, void* marshalData, int nParams, GType* paramTypes)
Undocumented in source. Be warned that the author may not have intended to support it.
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, void* instanc, void* args, void* marshalData, int nParams, GType* paramTypes)
Undocumented in source. Be warned that the author may not have intended to support it.
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, void* instanc, void* args, void* marshalData, int nParams, GType* paramTypes)
Undocumented in source. Be warned that the author may not have intended to support it.
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, void* instanc, void* args, void* marshalData, int nParams, GType* paramTypes)
Undocumented in source. Be warned that the author may not have intended to support it.
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, void* instanc, void* args, void* marshalData, int nParams, GType* paramTypes)
Undocumented in source. Be warned that the author may not have intended to support it.
marshalVOIDUINTv
void marshalVOIDUINTv(Closure closure, Value returnValue, void* instanc, void* args, void* marshalData, int nParams, GType* paramTypes)
Undocumented in source. Be warned that the author may not have intended to support it.
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, void* instanc, void* args, void* marshalData, int nParams, GType* paramTypes)
Undocumented in source. Be warned that the author may not have intended to support it.
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, void* instanc, void* args, void* marshalData, int nParams, GType* paramTypes)
Undocumented in source. Be warned that the author may not have intended to support it.
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, void* instanc, void* args, void* marshalData, int nParams, GType* paramTypes)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

gCClosure
GCClosure* gCClosure;

the main Gtk struct

Meta