Struct

GObjectCClosure

Description

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

g_cclosure_marshal_BOOLEAN__FLAGSv

The GVaClosureMarshal equivalent to g_cclosure_marshal_BOOLEAN__FLAGS().

g_cclosure_marshal_STRING__OBJECT_POINTER

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.

g_cclosure_marshal_STRING__OBJECT_POINTERv

The GVaClosureMarshal equivalent to g_cclosure_marshal_STRING__OBJECT_POINTER().

g_cclosure_marshal_VOID__BOOLEAN

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

g_cclosure_marshal_VOID__BOOLEANv

The GVaClosureMarshal equivalent to g_cclosure_marshal_VOID__BOOLEAN().

g_cclosure_marshal_VOID__BOXED

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

g_cclosure_marshal_VOID__BOXEDv

The GVaClosureMarshal equivalent to g_cclosure_marshal_VOID__BOXED().

g_cclosure_marshal_VOID__CHAR

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

g_cclosure_marshal_VOID__CHARv

The GVaClosureMarshal equivalent to g_cclosure_marshal_VOID__CHAR().

g_cclosure_marshal_VOID__DOUBLE

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

g_cclosure_marshal_VOID__DOUBLEv

The GVaClosureMarshal equivalent to g_cclosure_marshal_VOID__DOUBLE().

g_cclosure_marshal_VOID__ENUM

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

g_cclosure_marshal_VOID__ENUMv

The GVaClosureMarshal equivalent to g_cclosure_marshal_VOID__ENUM().

g_cclosure_marshal_VOID__FLAGS

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

g_cclosure_marshal_VOID__FLAGSv

The GVaClosureMarshal equivalent to g_cclosure_marshal_VOID__FLAGS().

g_cclosure_marshal_VOID__FLOAT

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

g_cclosure_marshal_VOID__FLOATv

The GVaClosureMarshal equivalent to g_cclosure_marshal_VOID__FLOAT().

g_cclosure_marshal_VOID__INT

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

g_cclosure_marshal_VOID__INTv

The GVaClosureMarshal equivalent to g_cclosure_marshal_VOID__INT().

g_cclosure_marshal_VOID__LONG

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

g_cclosure_marshal_VOID__LONGv

The GVaClosureMarshal equivalent to g_cclosure_marshal_VOID__LONG().

g_cclosure_marshal_VOID__OBJECT

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

g_cclosure_marshal_VOID__OBJECTv

The GVaClosureMarshal equivalent to g_cclosure_marshal_VOID__OBJECT().

g_cclosure_marshal_VOID__PARAM

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

g_cclosure_marshal_VOID__PARAMv

The GVaClosureMarshal equivalent to g_cclosure_marshal_VOID__PARAM().

g_cclosure_marshal_VOID__POINTER

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

g_cclosure_marshal_VOID__POINTERv

The GVaClosureMarshal equivalent to g_cclosure_marshal_VOID__POINTER().

g_cclosure_marshal_VOID__STRING

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

g_cclosure_marshal_VOID__STRINGv

The GVaClosureMarshal equivalent to g_cclosure_marshal_VOID__STRING().

g_cclosure_marshal_VOID__UCHAR

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

g_cclosure_marshal_VOID__UCHARv

The GVaClosureMarshal equivalent to g_cclosure_marshal_VOID__UCHAR().

g_cclosure_marshal_VOID__UINT

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

g_cclosure_marshal_VOID__UINT_POINTER

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

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 GClosureMarshal function for use with signals with a single unsigned long integer argument.

g_cclosure_marshal_VOID__ULONGv

The GVaClosureMarshal equivalent to g_cclosure_marshal_VOID__ULONG().

g_cclosure_marshal_VOID__VARIANT

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

g_cclosure_marshal_VOID__VARIANTv

The GVaClosureMarshal equivalent to g_cclosure_marshal_VOID__VARIANT().

g_cclosure_marshal_VOID__VOID

A GClosureMarshal function for use with signals with no arguments.

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.

since: 2.30

g_cclosure_marshal_generic_va

A generic GVaClosureMarshal function implemented via libffi.

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.