Interface Sidebar.DropValueLoadedCallback
- All Superinterfaces:
FunctionPointer
- Enclosing class:
Sidebar
- 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 Sidebar.DropValueLoadedCallback
extends FunctionPointer
Functional interface declaration of the DropValueLoadedCallback callback.
- Since:
- 1.9
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionEmitted when the dropped content is preloaded for the item atindex.default MemorySegmenttoCallback(Arena arena) Creates a native function pointer to theupcall(MemorySegment, int, MemorySegment)method.default intupcall(MemorySegment sourceSidebar, int index, MemorySegment value) Theupcallmethod is called from native code.
-
Method Details
-
run
Emitted when the dropped content is preloaded for the item at
index.In order for data to be preloaded,
Sidebar:drop-preloadmust be set toTRUE.The content must be of one of the types set up via
Sidebar.setupDropTarget(Set, Type[]).See
Gtk.DropTarget:value.- Since:
- 1.9
-
upcall
Theupcallmethod is called from native code. The parameters are marshaled andrun(int, Value)is executed. -
toCallback
Creates a native function pointer to theupcall(MemorySegment, int, MemorySegment)method.- Specified by:
toCallbackin interfaceFunctionPointer- Parameters:
arena- the arena in which the function pointer is allocated- Returns:
- the native function pointer
-