Package org.gnome.gtk
Interface Gesture.EndCallback
- All Superinterfaces:
FunctionPointer
- Enclosing class:
Gesture
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Functional interface declaration of the
EndCallback
callback.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
run
(@Nullable EventSequence sequence) Emitted whengesture
either stopped recognizing the event sequences as something to be handled, or the number of touch sequences became higher or lower thanGtk.Gesture:n-points
.default MemorySegment
toCallback
(Arena arena) Creates a native function pointer to theupcall(java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment)
method.default void
upcall
(MemorySegment sourceGesture, MemorySegment sequence) Theupcall
method is called from native code.
-
Method Details
-
run
Emitted whengesture
either stopped recognizing the event sequences as something to be handled, or the number of touch sequences became higher or lower thanGtk.Gesture:n-points
.Note:
sequence
might not pertain to the group of sequences that were previously triggering recognition ongesture
(ie. a just pressed touch sequence that exceedsGtk.Gesture:n-points
). This situation may be detected by checking throughGesture.handlesSequence(org.gnome.gdk.EventSequence)
. -
upcall
Theupcall
method is called from native code. The parameters are marshaled andrun(org.gnome.gdk.EventSequence)
is executed. -
toCallback
Creates a native function pointer to theupcall(java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment)
method.- Specified by:
toCallback
in interfaceFunctionPointer
- Parameters:
arena
- the function pointer will be allocated in this arena- Returns:
- the native function pointer
-