Interface Object.OnToggleNotify

Enclosing class:
Object
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 Object.OnToggleNotify
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onToggleNotify(CallbackHandler __self, Pointer data, Object object, boolean is_last_ref)
    A callback function used for notification when the state
    of a toggle reference changes.
  • Method Details

    • onToggleNotify

      void onToggleNotify(CallbackHandler __self, @Nullable Pointer data, @Nonnull Object object, boolean is_last_ref)
      A callback function used for notification when the state
      of a toggle reference changes.

      See also: g_object_add_toggle_ref()
      Parameters:
      data - Callback data passed to g_object_add_toggle_ref()
      object - The object on which g_object_add_toggle_ref() was called.
      is_last_ref - %TRUE if the toggle reference is now the last reference to the object. %FALSE if the toggle reference was the last reference and there are now other references.