Interface ScrolledWindow.EdgeReachedCallback

All Superinterfaces:
FunctionPointer
Enclosing class:
ScrolledWindow
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 ScrolledWindow.EdgeReachedCallback extends FunctionPointer

Functional interface declaration of the EdgeReachedCallback callback.

See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Emitted whenever user-initiated scrolling makes the scrolled window exactly reach the lower or upper limits defined by the adjustment in that orientation.
    Creates a native function pointer to the upcall(MemorySegment, int) method.
    default void
    upcall(MemorySegment sourceScrolledWindow, int pos)
    The upcall method is called from native code.
  • Method Details

    • run

      void run(PositionType pos)

      Emitted whenever user-initiated scrolling makes the scrolled window exactly reach the lower or upper limits defined by the adjustment in that orientation.

      A similar behavior with edge resistance is provided by the Gtk.ScrolledWindow::edge-overshot signal.

      Note: The pos argument is LTR/RTL aware, so callers should be aware too if intending to provide behavior on horizontal edges.

    • upcall

      default void upcall(MemorySegment sourceScrolledWindow, int pos)
      The upcall method is called from native code. The parameters are marshaled and run(PositionType) is executed.
    • toCallback

      default MemorySegment toCallback(Arena arena)
      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