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

  • marshalBOOLEANBOXEDBOXED(closure: TClosure<any, any>, returnValue: any, nParamValues: number, paramValues: any, invocationHint: object, marshalData: 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.

    • returnValue: any

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

    • nParamValues: number

      The length of the param_values array.

    • paramValues: any

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

    • invocationHint: object

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

    • marshalData: object

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

    Returns void

  • marshalBOOLEANFLAGS(closure: TClosure<any, any>, returnValue: any, nParamValues: number, paramValues: any, invocationHint: object, marshalData: 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

    • returnValue: any

      a #GValue which can store the returned #gboolean

    • nParamValues: number

      2

    • paramValues: any

      a #GValue array holding instance and arg1

    • invocationHint: object

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

    • marshalData: object

      additional data specified when registering the marshaller

    Returns void

  • marshalGeneric(closure: TClosure<any, any>, returnGvalue: any, nParamValues: number, paramValues: any, invocationHint: object, marshalData: 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.

    • returnGvalue: any

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

    • nParamValues: number

      The length of the param_values array.

    • paramValues: any

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

    • invocationHint: object

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

    • marshalData: object

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

    Returns void

  • marshalSTRINGOBJECTPOINTER(closure: TClosure<any, any>, returnValue: any, nParamValues: number, paramValues: any, invocationHint: object, marshalData: 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

    • returnValue: any

      a #GValue, which can store the returned string

    • nParamValues: number

      3

    • paramValues: any

      a #GValue array holding instance, arg1 and arg2

    • invocationHint: object

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

    • marshalData: object

      additional data specified when registering the marshaller

    Returns void

  • marshalVOIDBOOLEAN(closure: TClosure<any, any>, returnValue: any, nParamValues: number, paramValues: any, invocationHint: object, marshalData: 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

    • returnValue: any

      ignored

    • nParamValues: number

      2

    • paramValues: any

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

    • invocationHint: object

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

    • marshalData: object

      additional data specified when registering the marshaller

    Returns void

  • marshalVOIDBOXED(closure: TClosure<any, any>, returnValue: any, nParamValues: number, paramValues: any, invocationHint: object, marshalData: 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

    • returnValue: any

      ignored

    • nParamValues: number

      2

    • paramValues: any

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

    • invocationHint: object

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

    • marshalData: object

      additional data specified when registering the marshaller

    Returns void

  • marshalVOIDCHAR(closure: TClosure<any, any>, returnValue: any, nParamValues: number, paramValues: any, invocationHint: object, marshalData: 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

    • returnValue: any

      ignored

    • nParamValues: number

      2

    • paramValues: any

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

    • invocationHint: object

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

    • marshalData: object

      additional data specified when registering the marshaller

    Returns void

  • marshalVOIDDOUBLE(closure: TClosure<any, any>, returnValue: any, nParamValues: number, paramValues: any, invocationHint: object, marshalData: 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

    • returnValue: any

      ignored

    • nParamValues: number

      2

    • paramValues: any

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

    • invocationHint: object

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

    • marshalData: object

      additional data specified when registering the marshaller

    Returns void

  • marshalVOIDENUM(closure: TClosure<any, any>, returnValue: any, nParamValues: number, paramValues: any, invocationHint: object, marshalData: 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

    • returnValue: any

      ignored

    • nParamValues: number

      2

    • paramValues: any

      a #GValue array holding the instance and the enumeration parameter

    • invocationHint: object

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

    • marshalData: object

      additional data specified when registering the marshaller

    Returns void

  • marshalVOIDFLAGS(closure: TClosure<any, any>, returnValue: any, nParamValues: number, paramValues: any, invocationHint: object, marshalData: 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

    • returnValue: any

      ignored

    • nParamValues: number

      2

    • paramValues: any

      a #GValue array holding the instance and the flags parameter

    • invocationHint: object

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

    • marshalData: object

      additional data specified when registering the marshaller

    Returns void

  • marshalVOIDFLOAT(closure: TClosure<any, any>, returnValue: any, nParamValues: number, paramValues: any, invocationHint: object, marshalData: 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

    • returnValue: any

      ignored

    • nParamValues: number

      2

    • paramValues: any

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

    • invocationHint: object

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

    • marshalData: object

      additional data specified when registering the marshaller

    Returns void

  • marshalVOIDINT(closure: TClosure<any, any>, returnValue: any, nParamValues: number, paramValues: any, invocationHint: object, marshalData: 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

    • returnValue: any

      ignored

    • nParamValues: number

      2

    • paramValues: any

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

    • invocationHint: object

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

    • marshalData: object

      additional data specified when registering the marshaller

    Returns void

  • marshalVOIDLONG(closure: TClosure<any, any>, returnValue: any, nParamValues: number, paramValues: any, invocationHint: object, marshalData: 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

    • returnValue: any

      ignored

    • nParamValues: number

      2

    • paramValues: any

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

    • invocationHint: object

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

    • marshalData: object

      additional data specified when registering the marshaller

    Returns void

  • marshalVOIDOBJECT(closure: TClosure<any, any>, returnValue: any, nParamValues: number, paramValues: any, invocationHint: object, marshalData: 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

    • returnValue: any

      ignored

    • nParamValues: number

      2

    • paramValues: any

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

    • invocationHint: object

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

    • marshalData: object

      additional data specified when registering the marshaller

    Returns void

  • marshalVOIDPARAM(closure: TClosure<any, any>, returnValue: any, nParamValues: number, paramValues: any, invocationHint: object, marshalData: 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

    • returnValue: any

      ignored

    • nParamValues: number

      2

    • paramValues: any

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

    • invocationHint: object

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

    • marshalData: object

      additional data specified when registering the marshaller

    Returns void

  • marshalVOIDPOINTER(closure: TClosure<any, any>, returnValue: any, nParamValues: number, paramValues: any, invocationHint: object, marshalData: 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

    • returnValue: any

      ignored

    • nParamValues: number

      2

    • paramValues: any

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

    • invocationHint: object

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

    • marshalData: object

      additional data specified when registering the marshaller

    Returns void

  • marshalVOIDSTRING(closure: TClosure<any, any>, returnValue: any, nParamValues: number, paramValues: any, invocationHint: object, marshalData: 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

    • returnValue: any

      ignored

    • nParamValues: number

      2

    • paramValues: any

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

    • invocationHint: object

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

    • marshalData: object

      additional data specified when registering the marshaller

    Returns void

  • marshalVOIDUCHAR(closure: TClosure<any, any>, returnValue: any, nParamValues: number, paramValues: any, invocationHint: object, marshalData: 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

    • returnValue: any

      ignored

    • nParamValues: number

      2

    • paramValues: any

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

    • invocationHint: object

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

    • marshalData: object

      additional data specified when registering the marshaller

    Returns void

  • marshalVOIDUINT(closure: TClosure<any, any>, returnValue: any, nParamValues: number, paramValues: any, invocationHint: object, marshalData: 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

    • returnValue: any

      ignored

    • nParamValues: number

      2

    • paramValues: any

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

    • invocationHint: object

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

    • marshalData: object

      additional data specified when registering the marshaller

    Returns void

  • marshalVOIDUINTPOINTER(closure: TClosure<any, any>, returnValue: any, nParamValues: number, paramValues: any, invocationHint: object, marshalData: 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

    • returnValue: any

      ignored

    • nParamValues: number

      3

    • paramValues: any

      a #GValue array holding instance, arg1 and arg2

    • invocationHint: object

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

    • marshalData: object

      additional data specified when registering the marshaller

    Returns void

  • marshalVOIDULONG(closure: TClosure<any, any>, returnValue: any, nParamValues: number, paramValues: any, invocationHint: object, marshalData: 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

    • returnValue: any

      ignored

    • nParamValues: number

      2

    • paramValues: any

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

    • invocationHint: object

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

    • marshalData: object

      additional data specified when registering the marshaller

    Returns void

  • marshalVOIDVARIANT(closure: TClosure<any, any>, returnValue: any, nParamValues: number, paramValues: any, invocationHint: object, marshalData: 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

    • returnValue: any

      ignored

    • nParamValues: number

      2

    • paramValues: any

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

    • invocationHint: object

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

    • marshalData: object

      additional data specified when registering the marshaller

    Returns void

  • marshalVOIDVOID(closure: TClosure<any, any>, returnValue: any, nParamValues: number, paramValues: any, invocationHint: object, marshalData: 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

    • returnValue: any

      ignored

    • nParamValues: number

      1

    • paramValues: any

      a #GValue array holding only the instance

    • invocationHint: object

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

    • marshalData: object

      additional data specified when registering the marshaller

    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