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 TypeMethodDescriptionvoidrun(@Nullable EventSequence sequence) Emitted whengestureeither 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 MemorySegmenttoCallback(Arena arena) Creates a native function pointer to theupcall(java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment)method.default voidupcall(MemorySegment sourceGesture, MemorySegment sequence) Theupcallmethod is called from native code.
-
Method Details
-
run
Emitted whengestureeither 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:
sequencemight 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
Theupcallmethod 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:
toCallbackin interfaceFunctionPointer- Parameters:
arena- the arena in which the function pointer is allocated- Returns:
- the native function pointer
-