Gjsify LogoGjsify Logo

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

record

Hierarchy

  • CClosure

Index

Constructors

Properties

callback: object

the callback function

field
closure: TClosure<any, any>

the #GClosure

field
name: string

Methods

  • marshal_BOOLEAN__BOXED_BOXED(closure: TClosure<any, any>, return_value: any, n_param_values: number, param_values: any, invocation_hint: object, marshal_data: object): void
  • 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().

    Parameters

    • closure: TClosure<any, any>

      A #GClosure.

    • return_value: any

      A #GValue to store the return value. May be %NULL if the callback of closure doesn't return a value.

    • n_param_values: number

      The length of the param_values array.

    • param_values: any

      An array of #GValues holding the arguments on which to invoke the callback of closure.

    • invocation_hint: object

      The invocation hint given as the last argument to g_closure_invoke().

    • marshal_data: object

      Additional data specified when registering the marshaller, see g_closure_set_marshal() and g_closure_set_meta_marshal()

    Returns void

  • marshal_BOOLEAN__FLAGS(closure: TClosure<any, any>, return_value: any, n_param_values: number, param_values: any, invocation_hint: object, marshal_data: object): void
  • 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.

    Parameters

    • closure: TClosure<any, any>

      the #GClosure to which the marshaller belongs

    • return_value: any

      a #GValue which can store the returned #gboolean

    • n_param_values: number

      2

    • param_values: any

      a #GValue array holding instance and arg1

    • invocation_hint: object

      the invocation hint given as the last argument to g_closure_invoke()

    • marshal_data: object

      additional data specified when registering the marshaller

    Returns void

  • marshal_STRING__OBJECT_POINTER(closure: TClosure<any, any>, return_value: any, n_param_values: number, param_values: any, invocation_hint: object, marshal_data: object): void
  • A marshaller for a #GCClosure with a callback of type gchar* (*callback) (gpointer instance, GObject *arg1, gpointer arg2, gpointer user_data).

    Parameters

    • closure: TClosure<any, any>

      the #GClosure to which the marshaller belongs

    • return_value: any

      a #GValue, which can store the returned string

    • n_param_values: number

      3

    • param_values: any

      a #GValue array holding instance, arg1 and arg2

    • invocation_hint: object

      the invocation hint given as the last argument to g_closure_invoke()

    • marshal_data: object

      additional data specified when registering the marshaller

    Returns void

  • marshal_VOID__BOOLEAN(closure: TClosure<any, any>, return_value: any, n_param_values: number, param_values: any, invocation_hint: object, marshal_data: object): void
  • A marshaller for a #GCClosure with a callback of type void (*callback) (gpointer instance, gboolean arg1, gpointer user_data).

    Parameters

    • closure: TClosure<any, any>

      the #GClosure to which the marshaller belongs

    • return_value: any

      ignored

    • n_param_values: number

      2

    • param_values: any

      a #GValue array holding the instance and the #gboolean parameter

    • invocation_hint: object

      the invocation hint given as the last argument to g_closure_invoke()

    • marshal_data: object

      additional data specified when registering the marshaller

    Returns void

  • marshal_VOID__BOXED(closure: TClosure<any, any>, return_value: any, n_param_values: number, param_values: any, invocation_hint: object, marshal_data: object): void
  • A marshaller for a #GCClosure with a callback of type void (*callback) (gpointer instance, GBoxed *arg1, gpointer user_data).

    Parameters

    • closure: TClosure<any, any>

      the #GClosure to which the marshaller belongs

    • return_value: any

      ignored

    • n_param_values: number

      2

    • param_values: any

      a #GValue array holding the instance and the #GBoxed* parameter

    • invocation_hint: object

      the invocation hint given as the last argument to g_closure_invoke()

    • marshal_data: object

      additional data specified when registering the marshaller

    Returns void

  • marshal_VOID__CHAR(closure: TClosure<any, any>, return_value: any, n_param_values: number, param_values: any, invocation_hint: object, marshal_data: object): void
  • A marshaller for a #GCClosure with a callback of type void (*callback) (gpointer instance, gchar arg1, gpointer user_data).

    Parameters

    • closure: TClosure<any, any>

      the #GClosure to which the marshaller belongs

    • return_value: any

      ignored

    • n_param_values: number

      2

    • param_values: any

      a #GValue array holding the instance and the #gchar parameter

    • invocation_hint: object

      the invocation hint given as the last argument to g_closure_invoke()

    • marshal_data: object

      additional data specified when registering the marshaller

    Returns void

  • marshal_VOID__DOUBLE(closure: TClosure<any, any>, return_value: any, n_param_values: number, param_values: any, invocation_hint: object, marshal_data: object): void
  • A marshaller for a #GCClosure with a callback of type void (*callback) (gpointer instance, gdouble arg1, gpointer user_data).

    Parameters

    • closure: TClosure<any, any>

      the #GClosure to which the marshaller belongs

    • return_value: any

      ignored

    • n_param_values: number

      2

    • param_values: any

      a #GValue array holding the instance and the #gdouble parameter

    • invocation_hint: object

      the invocation hint given as the last argument to g_closure_invoke()

    • marshal_data: object

      additional data specified when registering the marshaller

    Returns void

  • marshal_VOID__ENUM(closure: TClosure<any, any>, return_value: any, n_param_values: number, param_values: any, invocation_hint: object, marshal_data: object): void
  • 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..

    Parameters

    • closure: TClosure<any, any>

      the #GClosure to which the marshaller belongs

    • return_value: any

      ignored

    • n_param_values: number

      2

    • param_values: any

      a #GValue array holding the instance and the enumeration parameter

    • invocation_hint: object

      the invocation hint given as the last argument to g_closure_invoke()

    • marshal_data: object

      additional data specified when registering the marshaller

    Returns void

  • marshal_VOID__FLAGS(closure: TClosure<any, any>, return_value: any, n_param_values: number, param_values: any, invocation_hint: object, marshal_data: object): void
  • 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.

    Parameters

    • closure: TClosure<any, any>

      the #GClosure to which the marshaller belongs

    • return_value: any

      ignored

    • n_param_values: number

      2

    • param_values: any

      a #GValue array holding the instance and the flags parameter

    • invocation_hint: object

      the invocation hint given as the last argument to g_closure_invoke()

    • marshal_data: object

      additional data specified when registering the marshaller

    Returns void

  • marshal_VOID__FLOAT(closure: TClosure<any, any>, return_value: any, n_param_values: number, param_values: any, invocation_hint: object, marshal_data: object): void
  • A marshaller for a #GCClosure with a callback of type void (*callback) (gpointer instance, gfloat arg1, gpointer user_data).

    Parameters

    • closure: TClosure<any, any>

      the #GClosure to which the marshaller belongs

    • return_value: any

      ignored

    • n_param_values: number

      2

    • param_values: any

      a #GValue array holding the instance and the #gfloat parameter

    • invocation_hint: object

      the invocation hint given as the last argument to g_closure_invoke()

    • marshal_data: object

      additional data specified when registering the marshaller

    Returns void

  • marshal_VOID__INT(closure: TClosure<any, any>, return_value: any, n_param_values: number, param_values: any, invocation_hint: object, marshal_data: object): void
  • A marshaller for a #GCClosure with a callback of type void (*callback) (gpointer instance, gint arg1, gpointer user_data).

    Parameters

    • closure: TClosure<any, any>

      the #GClosure to which the marshaller belongs

    • return_value: any

      ignored

    • n_param_values: number

      2

    • param_values: any

      a #GValue array holding the instance and the #gint parameter

    • invocation_hint: object

      the invocation hint given as the last argument to g_closure_invoke()

    • marshal_data: object

      additional data specified when registering the marshaller

    Returns void

  • marshal_VOID__LONG(closure: TClosure<any, any>, return_value: any, n_param_values: number, param_values: any, invocation_hint: object, marshal_data: object): void
  • A marshaller for a #GCClosure with a callback of type void (*callback) (gpointer instance, glong arg1, gpointer user_data).

    Parameters

    • closure: TClosure<any, any>

      the #GClosure to which the marshaller belongs

    • return_value: any

      ignored

    • n_param_values: number

      2

    • param_values: any

      a #GValue array holding the instance and the #glong parameter

    • invocation_hint: object

      the invocation hint given as the last argument to g_closure_invoke()

    • marshal_data: object

      additional data specified when registering the marshaller

    Returns void

  • marshal_VOID__OBJECT(closure: TClosure<any, any>, return_value: any, n_param_values: number, param_values: any, invocation_hint: object, marshal_data: object): void
  • A marshaller for a #GCClosure with a callback of type void (*callback) (gpointer instance, GObject *arg1, gpointer user_data).

    Parameters

    • closure: TClosure<any, any>

      the #GClosure to which the marshaller belongs

    • return_value: any

      ignored

    • n_param_values: number

      2

    • param_values: any

      a #GValue array holding the instance and the #GObject* parameter

    • invocation_hint: object

      the invocation hint given as the last argument to g_closure_invoke()

    • marshal_data: object

      additional data specified when registering the marshaller

    Returns void

  • marshal_VOID__PARAM(closure: TClosure<any, any>, return_value: any, n_param_values: number, param_values: any, invocation_hint: object, marshal_data: object): void
  • A marshaller for a #GCClosure with a callback of type void (*callback) (gpointer instance, GParamSpec *arg1, gpointer user_data).

    Parameters

    • closure: TClosure<any, any>

      the #GClosure to which the marshaller belongs

    • return_value: any

      ignored

    • n_param_values: number

      2

    • param_values: any

      a #GValue array holding the instance and the #GParamSpec* parameter

    • invocation_hint: object

      the invocation hint given as the last argument to g_closure_invoke()

    • marshal_data: object

      additional data specified when registering the marshaller

    Returns void

  • marshal_VOID__POINTER(closure: TClosure<any, any>, return_value: any, n_param_values: number, param_values: any, invocation_hint: object, marshal_data: object): void
  • A marshaller for a #GCClosure with a callback of type void (*callback) (gpointer instance, gpointer arg1, gpointer user_data).

    Parameters

    • closure: TClosure<any, any>

      the #GClosure to which the marshaller belongs

    • return_value: any

      ignored

    • n_param_values: number

      2

    • param_values: any

      a #GValue array holding the instance and the #gpointer parameter

    • invocation_hint: object

      the invocation hint given as the last argument to g_closure_invoke()

    • marshal_data: object

      additional data specified when registering the marshaller

    Returns void

  • marshal_VOID__STRING(closure: TClosure<any, any>, return_value: any, n_param_values: number, param_values: any, invocation_hint: object, marshal_data: object): void
  • A marshaller for a #GCClosure with a callback of type void (*callback) (gpointer instance, const gchar *arg1, gpointer user_data).

    Parameters

    • closure: TClosure<any, any>

      the #GClosure to which the marshaller belongs

    • return_value: any

      ignored

    • n_param_values: number

      2

    • param_values: any

      a #GValue array holding the instance and the #gchar* parameter

    • invocation_hint: object

      the invocation hint given as the last argument to g_closure_invoke()

    • marshal_data: object

      additional data specified when registering the marshaller

    Returns void

  • marshal_VOID__UCHAR(closure: TClosure<any, any>, return_value: any, n_param_values: number, param_values: any, invocation_hint: object, marshal_data: object): void
  • A marshaller for a #GCClosure with a callback of type void (*callback) (gpointer instance, guchar arg1, gpointer user_data).

    Parameters

    • closure: TClosure<any, any>

      the #GClosure to which the marshaller belongs

    • return_value: any

      ignored

    • n_param_values: number

      2

    • param_values: any

      a #GValue array holding the instance and the #guchar parameter

    • invocation_hint: object

      the invocation hint given as the last argument to g_closure_invoke()

    • marshal_data: object

      additional data specified when registering the marshaller

    Returns void

  • marshal_VOID__UINT(closure: TClosure<any, any>, return_value: any, n_param_values: number, param_values: any, invocation_hint: object, marshal_data: object): void
  • A marshaller for a #GCClosure with a callback of type void (*callback) (gpointer instance, guint arg1, gpointer user_data).

    Parameters

    • closure: TClosure<any, any>

      the #GClosure to which the marshaller belongs

    • return_value: any

      ignored

    • n_param_values: number

      2

    • param_values: any

      a #GValue array holding the instance and the #guint parameter

    • invocation_hint: object

      the invocation hint given as the last argument to g_closure_invoke()

    • marshal_data: object

      additional data specified when registering the marshaller

    Returns void

  • marshal_VOID__UINT_POINTER(closure: TClosure<any, any>, return_value: any, n_param_values: number, param_values: any, invocation_hint: object, marshal_data: object): void
  • A marshaller for a #GCClosure with a callback of type void (*callback) (gpointer instance, guint arg1, gpointer arg2, gpointer user_data).

    Parameters

    • closure: TClosure<any, any>

      the #GClosure to which the marshaller belongs

    • return_value: any

      ignored

    • n_param_values: number

      3

    • param_values: any

      a #GValue array holding instance, arg1 and arg2

    • invocation_hint: object

      the invocation hint given as the last argument to g_closure_invoke()

    • marshal_data: object

      additional data specified when registering the marshaller

    Returns void

  • marshal_VOID__ULONG(closure: TClosure<any, any>, return_value: any, n_param_values: number, param_values: any, invocation_hint: object, marshal_data: object): void
  • A marshaller for a #GCClosure with a callback of type void (*callback) (gpointer instance, gulong arg1, gpointer user_data).

    Parameters

    • closure: TClosure<any, any>

      the #GClosure to which the marshaller belongs

    • return_value: any

      ignored

    • n_param_values: number

      2

    • param_values: any

      a #GValue array holding the instance and the #gulong parameter

    • invocation_hint: object

      the invocation hint given as the last argument to g_closure_invoke()

    • marshal_data: object

      additional data specified when registering the marshaller

    Returns void

  • marshal_VOID__VARIANT(closure: TClosure<any, any>, return_value: any, n_param_values: number, param_values: any, invocation_hint: object, marshal_data: object): void
  • A marshaller for a #GCClosure with a callback of type void (*callback) (gpointer instance, GVariant *arg1, gpointer user_data).

    Parameters

    • closure: TClosure<any, any>

      the #GClosure to which the marshaller belongs

    • return_value: any

      ignored

    • n_param_values: number

      2

    • param_values: any

      a #GValue array holding the instance and the #GVariant* parameter

    • invocation_hint: object

      the invocation hint given as the last argument to g_closure_invoke()

    • marshal_data: object

      additional data specified when registering the marshaller

    Returns void

  • marshal_VOID__VOID(closure: TClosure<any, any>, return_value: any, n_param_values: number, param_values: any, invocation_hint: object, marshal_data: object): void
  • A marshaller for a #GCClosure with a callback of type void (*callback) (gpointer instance, gpointer user_data).

    Parameters

    • closure: TClosure<any, any>

      the #GClosure to which the marshaller belongs

    • return_value: any

      ignored

    • n_param_values: number

      1

    • param_values: any

      a #GValue array holding only the instance

    • invocation_hint: object

      the invocation hint given as the last argument to g_closure_invoke()

    • marshal_data: object

      additional data specified when registering the marshaller

    Returns void

  • marshal_generic(closure: TClosure<any, any>, return_gvalue: any, n_param_values: number, param_values: any, invocation_hint: object, marshal_data: object): void
  • A generic marshaller function implemented via libffi.

    Normally this function is not passed explicitly to g_signal_new(), but used automatically by GLib when specifying a %NULL marshaller.

    Parameters

    • closure: TClosure<any, any>

      A #GClosure.

    • return_gvalue: any

      A #GValue to store the return value. May be %NULL if the callback of closure doesn't return a value.

    • n_param_values: number

      The length of the param_values array.

    • param_values: any

      An array of #GValues holding the arguments on which to invoke the callback of closure.

    • invocation_hint: object

      The invocation hint given as the last argument to g_closure_invoke().

    • marshal_data: object

      Additional data specified when registering the marshaller, see g_closure_set_marshal() and g_closure_set_meta_marshal()

    Returns void

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method