Package org.gnome.webkit
Interface WebInspector.DetachCallback
- All Superinterfaces:
FunctionPointer
- Enclosing class:
WebInspector
- 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
DetachCallback
callback.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionboolean
run()
Emitted when the inspector is requested to be detached from the window it is currently attached to.default MemorySegment
toCallback
(Arena arena) Creates a native function pointer to theupcall(java.lang.foreign.MemorySegment)
method.default int
upcall
(MemorySegment sourceWebInspector) Theupcall
method is called from native code.
-
Method Details
-
run
boolean run()Emitted when the inspector is requested to be detached from the window it is currently attached to. The inspector is detached when the inspector page is about to be closed, and this signal is emitted right beforeWebKitWebInspector
::closed, or when the user clicks on the detach button in the inspector view to show the inspector in a separate window. In this case the signalWebKitWebInspector
::open-window is emitted after this one.To prevent the inspector view from being detached you can connect to this signal and simply return
true
. -
upcall
Theupcall
method is called from native code. The parameters are marshaled andrun()
is executed. -
toCallback
Creates a native function pointer to theupcall(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
-