Class (GI Struct)

GLib-2.0GLibHook

The GLib.Hook struct represents a single hook function in a GLib.HookList.

Index

Constructors

Properties

data: any
destroy: DestroyNotify
flags: number
func: any
hook_id: number
ref_count: number
$gtype: GType<Hook>

Methods

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

    Parameters

    Returns number

    a value <= 0 if the id of sibling is >= the id of new_hook