Struct

GObjectCClosure

Description [src]

struct GCClosure {
  GClosure closure;
  gpointer callback;
}

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

Structure members
closure

The GClosure.

callback

The callback function.

Functions

g_cclosure_marshal_BOOLEAN__BOXED_BOXED

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

g_cclosure_marshal_BOOLEAN__BOXED_BOXEDv

The GVaClosureMarshal equivalent to g_cclosure_marshal_BOOLEAN__BOXED_BOXED().

g_cclosure_marshal_BOOLEAN__FLAGS

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.

g_cclosure_marshal_BOOLEAN__FLAGSv

The GVaClosureMarshal equivalent to g_cclosure_marshal_BOOLEAN__FLAGS().

g_cclosure_marshal_STRING__OBJECT_POINTER

A marshaller for a GCClosure with a callback of type gchar* (*callback) (gpointer instance, GObject *arg1, gpointer arg2, gpointer user_data).

g_cclosure_marshal_STRING__OBJECT_POINTERv

The GVaClosureMarshal equivalent to g_cclosure_marshal_STRING__OBJECT_POINTER().

g_cclosure_marshal_VOID__BOOLEAN

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

g_cclosure_marshal_VOID__BOOLEANv

The GVaClosureMarshal equivalent to g_cclosure_marshal_VOID__BOOLEAN().

g_cclosure_marshal_VOID__BOXED

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

g_cclosure_marshal_VOID__BOXEDv

The GVaClosureMarshal equivalent to g_cclosure_marshal_VOID__BOXED().

g_cclosure_marshal_VOID__CHAR

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

g_cclosure_marshal_VOID__CHARv

The GVaClosureMarshal equivalent to g_cclosure_marshal_VOID__CHAR().

g_cclosure_marshal_VOID__DOUBLE

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

g_cclosure_marshal_VOID__DOUBLEv

The GVaClosureMarshal equivalent to g_cclosure_marshal_VOID__DOUBLE().

g_cclosure_marshal_VOID__ENUM

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..

g_cclosure_marshal_VOID__ENUMv

The GVaClosureMarshal equivalent to g_cclosure_marshal_VOID__ENUM().

g_cclosure_marshal_VOID__FLAGS

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.

g_cclosure_marshal_VOID__FLAGSv

The GVaClosureMarshal equivalent to g_cclosure_marshal_VOID__FLAGS().

g_cclosure_marshal_VOID__FLOAT

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

g_cclosure_marshal_VOID__FLOATv

The GVaClosureMarshal equivalent to g_cclosure_marshal_VOID__FLOAT().

g_cclosure_marshal_VOID__INT

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

g_cclosure_marshal_VOID__INTv

The GVaClosureMarshal equivalent to g_cclosure_marshal_VOID__INT().

g_cclosure_marshal_VOID__LONG

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

g_cclosure_marshal_VOID__LONGv

The GVaClosureMarshal equivalent to g_cclosure_marshal_VOID__LONG().

g_cclosure_marshal_VOID__OBJECT

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

g_cclosure_marshal_VOID__OBJECTv

The GVaClosureMarshal equivalent to g_cclosure_marshal_VOID__OBJECT().

g_cclosure_marshal_VOID__PARAM

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

g_cclosure_marshal_VOID__PARAMv

The GVaClosureMarshal equivalent to g_cclosure_marshal_VOID__PARAM().

g_cclosure_marshal_VOID__POINTER

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

g_cclosure_marshal_VOID__POINTERv

The GVaClosureMarshal equivalent to g_cclosure_marshal_VOID__POINTER().

g_cclosure_marshal_VOID__STRING

A marshaller for a GCClosure with a callback of type void (*callback) (gpointer instance, const gchar *arg1, gpointer user_data).

g_cclosure_marshal_VOID__STRINGv

The GVaClosureMarshal equivalent to g_cclosure_marshal_VOID__STRING().

g_cclosure_marshal_VOID__UCHAR

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

g_cclosure_marshal_VOID__UCHARv

The GVaClosureMarshal equivalent to g_cclosure_marshal_VOID__UCHAR().

g_cclosure_marshal_VOID__UINT

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

g_cclosure_marshal_VOID__UINT_POINTER

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

g_cclosure_marshal_VOID__UINT_POINTERv

The GVaClosureMarshal equivalent to g_cclosure_marshal_VOID__UINT_POINTER().

g_cclosure_marshal_VOID__UINTv

The GVaClosureMarshal equivalent to g_cclosure_marshal_VOID__UINT().

g_cclosure_marshal_VOID__ULONG

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

g_cclosure_marshal_VOID__ULONGv

The GVaClosureMarshal equivalent to g_cclosure_marshal_VOID__ULONG().

g_cclosure_marshal_VOID__VARIANT

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

Available since: 2.26

g_cclosure_marshal_VOID__VARIANTv

The GVaClosureMarshal equivalent to g_cclosure_marshal_VOID__VARIANT().

g_cclosure_marshal_VOID__VOID

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

g_cclosure_marshal_VOID__VOIDv

The GVaClosureMarshal equivalent to g_cclosure_marshal_VOID__VOID().

g_cclosure_marshal_generic

A generic marshaller function implemented via libffi.

Available since: 2.30

g_cclosure_marshal_generic_va

A generic GVaClosureMarshal function implemented via libffi.

Available since: 2.30

g_cclosure_new

Creates a new closure which invokes callback_func with user_data as the last parameter.

g_cclosure_new_object

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

g_cclosure_new_object_swap

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

g_cclosure_new_swap

Creates a new closure which invokes callback_func with user_data as the first parameter.