Package org.gnome.adw
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 TypeMethodDescriptionboolean
This signal is emitted when content is dropped onto a tab.default MemorySegment
toCallback
(Arena arena) Creates a native function pointer to theupcall(java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment)
method.default int
upcall
(MemorySegment sourceTabBar, MemorySegment page, MemorySegment value) Theupcall
method is called from native code.
-
Method Details
-
run
This signal is emitted when content is dropped onto a tab.The content must be of one of the types set up via
TabBar.setupExtraDropTarget(java.util.Set<org.gnome.gdk.DragAction>, org.gnome.glib.Type[])
.See
Gtk.DropTarget::drop
. -
upcall
Theupcall
method is called from native code. The parameters are marshaled andrun(org.gnome.adw.TabPage, org.gnome.gobject.Value)
is executed. -
toCallback
Creates a native function pointer to theupcall(java.lang.foreign.MemorySegment, 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
-