Gjsify LogoGjsify Logo

The #GHookList struct represents a list of hook functions.

record

Hierarchy

  • HookList

Index

Constructors

Properties

dummy: object[]

unused

field
dummy3: object

unused

field
finalizeHook: HookFinalizeFunc

the function to call to finalize a #GHook element. The default behaviour is to call the hooks destroy function

field
hookSize: number

the size of the #GHookList elements, in bytes

field
hooks: GLib.Hook

the first #GHook element in the list

field
isSetup: number

1 if the #GHookList has been initialized

field
seqId: number

the next free #GHook id

field
name: string

Methods

  • clear(): void
  • init(hookSize: number): void
  • Initializes a #GHookList. This must be called before the #GHookList is used.

    Parameters

    • hookSize: number

      the size of each element in the #GHookList, typically sizeof (GHook).

    Returns void

  • invoke(mayRecurse: boolean): void
  • Calls all of the #GHook functions in a #GHookList.

    Parameters

    • mayRecurse: boolean

      %TRUE if functions which are already running (e.g. in another thread) can be called. If set to %FALSE, these are skipped

    Returns void

  • invokeCheck(mayRecurse: boolean): void
  • Calls all of the #GHook functions in a #GHookList. Any function which returns %FALSE is removed from the #GHookList.

    Parameters

    • mayRecurse: boolean

      %TRUE if functions which are already running (e.g. in another thread) can be called. If set to %FALSE, these are skipped

    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