Class CallbackAction

All Implemented Interfaces:
PointerInterface

public class CallbackAction extends ShortcutAction
A `GtkShortcutAction` that invokes a callback.

https://docs.gtk.org/gtk4/class.CallbackAction.html

  • Constructor Details

    • CallbackAction

      public CallbackAction(PointerContainer pointer)
    • CallbackAction

      public CallbackAction(CallbackAction.OnShortcutFunc callback, @Nullable Pointer data, CallbackAction.OnDestroyNotify destroy)
      Create a custom action that calls the given @callback when
      activated.
      Parameters:
      callback - the callback to call
      data - the data to be passed to @callback
      destroy - the function to be called when the callback action is finalized
  • Method Details

    • getClassHandler

      public static ClassHandler getClassHandler()
    • getTypeID

      public static long getTypeID()
    • getParentTypeID

      public static long getParentTypeID()
    • getTypeSize

      public static TypeSystem.TypeSize getTypeSize()
    • getParentTypeSize

      public static TypeSystem.TypeSize getParentTypeSize()
    • getInstanceSize

      public static int getInstanceSize()