Interface TabBar.ExtraDragDropCallback
- All Superinterfaces:
FunctionPointer
- Enclosing class:
TabBar
- 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 ExtraDragDropCallback callback.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleanEmitted when content is dropped onto a tab.default MemorySegmenttoCallback(Arena arena) Creates a native function pointer to theupcall(MemorySegment, MemorySegment, MemorySegment)method.default intupcall(MemorySegment sourceTabBar, MemorySegment page, MemorySegment value) Theupcallmethod is called from native code.
-
Method Details
-
run
Emitted when content is dropped onto a tab.
The content must be of one of the types set up via
TabBar.setupExtraDropTarget(Set, Type[]).See
Gtk.DropTarget::drop. -
upcall
Theupcallmethod is called from native code. The parameters are marshaled andrun(TabPage, Value)is executed. -
toCallback
Creates a native function pointer to theupcall(MemorySegment, MemorySegment, MemorySegment)method.- Specified by:
toCallbackin interfaceFunctionPointer- Parameters:
arena- the arena in which the function pointer is allocated- Returns:
- the native function pointer
-