Interface ShortcutsSection.ChangeCurrentPageCallback

All Superinterfaces:
FunctionPointer
Enclosing class:
ShortcutsSection
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 ShortcutsSection.ChangeCurrentPageCallback extends FunctionPointer
Deprecated.

Functional interface declaration of the ChangeCurrentPageCallback callback.

See Also:
  • Method Summary

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

    • run

      @Deprecated boolean run(int offset)
      Deprecated.
      This widget will be removed in GTK 5

      Emitted when we change the current page.

      The default bindings for this signal are Ctrl+PgUp, PgUp, Ctrl+PgDn, PgDn.

    • upcall

      default int upcall(MemorySegment sourceShortcutsSection, int offset)
      Deprecated.
      The upcall method is called from native code. The parameters are marshaled and run(int) is executed.
    • toCallback

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