Interface Assistant.ApplyCallback

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

@FunctionalInterface @Deprecated public static interface Assistant.ApplyCallback extends FunctionPointer
Deprecated.

Functional interface declaration of the ApplyCallback callback.

See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    run()
    Deprecated.
    This widget will be removed in GTK 5
    Deprecated.
    Creates a native function pointer to the upcall(MemorySegment) method.
    default void
    upcall(MemorySegment sourceAssistant)
    Deprecated.
    The upcall method is called from native code.
  • Method Details

    • run

      @Deprecated void run()
      Deprecated.
      This widget will be removed in GTK 5

      Emitted when the apply button is clicked.

      The default behavior of the GtkAssistant is to switch to the page after the current page, unless the current page is the last one.

      A handler for the ::apply signal should carry out the actions for which the wizard has collected data. If the action takes a long time to complete, you might consider putting a page of type AssistantPageType.PROGRESS after the confirmation page and handle this operation within the Gtk.Assistant::prepare signal of the progress page.

    • upcall

      default void upcall(MemorySegment sourceAssistant)
      Deprecated.
      The upcall method is called from native code. The parameters are marshaled and run() is executed.
    • toCallback

      default MemorySegment toCallback(Arena arena)
      Deprecated.
      Creates a native function pointer to the upcall(MemorySegment) method.
      Specified by:
      toCallback in interface FunctionPointer
      Parameters:
      arena - the arena in which the function pointer is allocated
      Returns:
      the native function pointer