Interface Hook.OnHookCompareFunc

Enclosing class:
Hook
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface Hook.OnHookCompareFunc
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    onHookCompareFunc(CallbackHandler __self, Hook new_hook, Hook sibling)
    Defines the type of function used to compare #GHook elements in
    g_hook_insert_sorted().
  • Method Details

    • onHookCompareFunc

      int onHookCompareFunc(CallbackHandler __self, @Nonnull Hook new_hook, @Nonnull Hook sibling)
      Defines the type of function used to compare #GHook elements in
      g_hook_insert_sorted().
      Parameters:
      new_hook - the #GHook being inserted
      sibling - the #GHook to compare with @new_hook
      Returns:
      a value <= 0 if @new_hook should be before @sibling