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
finalize_hook: HookFinalizeFunc

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

field
hook_size: number

the size of the #GHookList elements, in bytes

field
hooks: GLib.Hook

the first #GHook element in the list

field
is_setup: number

1 if the #GHookList has been initialized

field
seq_id: number

the next free #GHook id

field
name: string

Methods

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

    Parameters

    • hook_size: number

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

    Returns void

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

    Parameters

    • may_recurse: 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

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

    Parameters

    • may_recurse: 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