Package org.gnome.gtk
Interface DragSource.DragBeginCallback
- All Superinterfaces:
FunctionPointer
- Enclosing class:
DragSource
- 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
DragBeginCallback
callback.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Emitted on the drag source when a drag is started.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 sourceDragSource, MemorySegment drag) Theupcall
method is called from native code.
-
Method Details
-
run
Emitted on the drag source when a drag is started.It can be used to e.g. set a custom drag icon with
DragSource.setIcon(org.gnome.gdk.Paintable, int, int)
. -
upcall
Theupcall
method is called from native code. The parameters are marshaled andrun(org.gnome.gdk.Drag)
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
-