Package org.gnome.gtk
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 TypeMethodDescriptionvoidrun(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.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 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-overshotsignal.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
-