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
hook_id: 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
ref_count: 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(hook_list: HookList, hook_id: number): boolean
  • Calls the #GHookList finalize_hook function if it exists, and frees the memory allocated for the #GHook.

    Parameters

    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