Package org.gnome.gtk
Interface ScrolledWindow.EdgeOvershotCallback
- 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.EdgeOvershotCallback
extends FunctionPointer
Functional interface declaration of the
EdgeOvershotCallback callback.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidrun(PositionType pos) Emitted whenever user initiated scrolling makes the scrolled window firmly surpass the limits defined by the adjustment in that orientation.default MemorySegmenttoCallback(Arena arena) Creates a native function pointer to theupcall(java.lang.foreign.MemorySegment, int)method.default voidupcall(MemorySegment sourceScrolledWindow, int pos) Theupcallmethod is called from native code.
-
Method Details
-
run
Emitted whenever user initiated scrolling makes the scrolled window firmly surpass the limits defined by the adjustment in that orientation.A similar behavior without edge resistance is provided by the
Gtk.ScrolledWindow::edge-reachedsignal.Note: The
posargument is LTR/RTL aware, so callers should be aware too if intending to provide behavior on horizontal edges. -
upcall
Theupcallmethod is called from native code. The parameters are marshaled andrun(org.gnome.gtk.PositionType)is executed. -
toCallback
Creates a native function pointer to theupcall(java.lang.foreign.MemorySegment, int)method.- Specified by:
toCallbackin interfaceFunctionPointer- Parameters:
arena- the arena in which the function pointer is allocated- Returns:
- the native function pointer
-