HookCompareFunc

typealias HookCompareFunc = (newHook: Hook, sibling: Hook) -> <Error class: unknown class>

Defines the type of function used to compare #GHook elements in g_hook_insert_sorted().

  • param newHook the #GHook being inserted

  • param sibling the #GHook to compare with @new_hook

  • return a value <= 0 if @new_hook should be before @sibling