Package org.gnome.gtk
Interface Gesture.BeginCallback
- 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
BeginCallback
callback.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
run
(@Nullable EventSequence sequence) Emitted when the gesture is recognized.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 when the gesture is recognized.This means the number of touch sequences matches
Gtk.Gesture:n-points
.Note: These conditions may also happen when an extra touch (eg. a third touch on a 2-touches gesture) is lifted, in that situation
sequence
won't pertain to the current set of active touches, so don't rely on this being true. -
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
-