Package org.gnome.gtk
Interface GestureClick.UnpairedReleaseCallback
- All Superinterfaces:
FunctionPointer
- Enclosing class:
GestureClick
- 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 GestureClick.UnpairedReleaseCallback
extends FunctionPointer
Functional interface declaration of the
UnpairedReleaseCallback
callback.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
run
(double x, double y, int button, @Nullable EventSequence sequence) Emitted whenever the gesture receives a release event that had no previous corresponding press.default MemorySegment
toCallback
(Arena arena) Creates a native function pointer to theupcall(java.lang.foreign.MemorySegment, double, double, int, java.lang.foreign.MemorySegment)
method.default void
upcall
(MemorySegment sourceGestureClick, double x, double y, int button, MemorySegment sequence) Theupcall
method is called from native code.
-
Method Details
-
run
Emitted whenever the gesture receives a release event that had no previous corresponding press.Due to implicit grabs, this can only happen on situations where input is grabbed elsewhere mid-press or the pressed widget voluntarily relinquishes its implicit grab.
-
upcall
default void upcall(MemorySegment sourceGestureClick, double x, double y, int button, MemorySegment sequence) Theupcall
method is called from native code. The parameters are marshaled andrun(double, double, int, org.gnome.gdk.EventSequence)
is executed. -
toCallback
Creates a native function pointer to theupcall(java.lang.foreign.MemorySegment, double, double, int, 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
-