Gjsify LogoGjsify Logo

The #GHook struct represents a single hook function in a #GHookList.

record

Hierarchy

  • Hook

Index

Constructors

Properties

data: object

data which is passed to func when this hook is invoked

field

the default finalize_hook function of a #GHookList calls this member of the hook that is being finalized

field
flags: number

flags which are set for this hook. See #GHookFlagMask for predefined flags

field
func: object

the function to call when this hook is invoked. The possible signatures for this function are #GHookFunc and #GHookCheckFunc

field
hookId: number

the id of this hook, which is unique within its list

field
next: GLib.Hook

pointer to the next hook in the list

field
prev: GLib.Hook

pointer to the previous hook in the list

field
refCount: number

the reference count of this hook

field
name: string

Methods

  • Compares the ids of two #GHook elements, returning a negative value if the second id is greater than the first.

    Parameters

    • sibling: GLib.Hook

      a #GHook to compare with new_hook

    Returns number

  • destroy(hookList: HookList, hookId: number): boolean
  • Destroys a #GHook, given its ID.

    Parameters

    • hookList: HookList

      a #GHookList

    • hookId: number

      a hook ID

    Returns boolean

  • Removes one #GHook from a #GHookList, marking it inactive and calling g_hook_unref() on it.

    Parameters

    Returns void

  • Calls the #GHookList finalize_hook function if it exists, and frees the memory allocated for the #GHook.

    Parameters

    Returns void

  • Inserts a #GHook into a #GHookList, before a given #GHook.

    Parameters

    • hookList: HookList

      a #GHookList

    • sibling: GLib.Hook

      the #GHook to insert the new #GHook before

    • hook: GLib.Hook

      the #GHook to insert

    Returns void

  • Prepends a #GHook on the start of a #GHookList.

    Parameters

    • hookList: HookList

      a #GHookList

    • hook: GLib.Hook

      the #GHook to add to the start of hook_list

    Returns void

  • Decrements the reference count of a #GHook. If the reference count falls to 0, the #GHook is removed from the #GHookList and g_hook_free() is called to free it.

    Parameters

    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