Class CallbackAction

All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class CallbackAction extends ShortcutAction
Invokes a callback.
  • Constructor Details

    • CallbackAction

      public CallbackAction(MemorySegment address)
      Create a CallbackAction instance for the provided memory address.
      Parameters:
      address - the memory address of the native object
    • CallbackAction

      public CallbackAction(@Nullable ShortcutFunc callback)
      Create a custom action that calls the given callback when activated.
      Parameters:
      callback - the callback to call when the action is activated
    • CallbackAction

      public CallbackAction()
      Create a new CallbackAction.
  • Method Details

    • getType

      public static @Nullable Type getType()
      Get the GType of the CallbackAction class.
      Returns:
      the GType
    • getMemoryLayout

      public static MemoryLayout getMemoryLayout()
      The memory layout of the native struct.
      Returns:
      the memory layout
    • asParent

      protected CallbackAction asParent()
      Return this instance as if it were its parent type. Comparable to the Java super keyword, but ensures the parent typeclass is also used in native code.
      Overrides:
      asParent in class ShortcutAction
      Returns:
      the instance as if it were its parent type
    • builder

      public static CallbackAction.Builder<? extends CallbackAction.Builder> builder()
      A CallbackAction.Builder object constructs a CallbackAction with the specified properties. Use the various set...() methods to set properties, and finish construction with CallbackAction.Builder.build().
      Returns:
      the builder object