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 TypeMethodDescriptionvoid
run
(PositionType pos) Emitted whenever user initiated scrolling makes the scrolled window firmly surpass the limits defined by the adjustment in that orientation.default MemorySegment
toCallback
(Arena arena) Creates a native function pointer to theupcall(java.lang.foreign.MemorySegment, int)
method.default void
upcall
(MemorySegment sourceScrolledWindow, int pos) Theupcall
method 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-reached
signal.Note: The
pos
argument is LTR/RTL aware, so callers should be aware too if intending to provide behavior on horizontal edges. -
upcall
Theupcall
method 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:
toCallback
in interfaceFunctionPointer
- Parameters:
arena
- the function pointer will be allocated in this arena- Returns:
- the native function pointer
-