Package org.gnome.adw
Interface TabOverview.ExtraDragValueCallback
- All Superinterfaces:
FunctionPointer
- Enclosing class:
TabOverview
- 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 TabOverview.ExtraDragValueCallback
extends FunctionPointer
Functional interface declaration of the
ExtraDragValueCallback
callback.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionThis signal is emitted when the dropped content is preloaded.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 sourceTabOverview, MemorySegment page, MemorySegment value) Theupcall
method is called from native code.
-
Method Details
-
run
This signal is emitted when the dropped content is preloaded.In order for data to be preloaded,
TabOverview:extra-drag-preload
must be set toTRUE
.The content must be of one of the types set up via
TabOverview.setupExtraDropTarget(java.util.Set<org.gnome.gdk.DragAction>, org.gnome.glib.Type[])
.See
Gtk.DropTarget:value
. -
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
-