Interface WebInspector.OpenWindowCallback
- 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.
@FunctionalInterface
public static interface WebInspector.OpenWindowCallback
extends FunctionPointer
Functional interface declaration of the OpenWindowCallback callback.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleanrun()Emitted when the inspector is requested to open in a separate window.default MemorySegmenttoCallback(Arena arena) Creates a native function pointer to theupcall(MemorySegment)method.default intupcall(MemorySegment sourceWebInspector) Theupcallmethod is called from native code.
-
Method Details
-
run
boolean run()Emitted when the inspector is requested to open in a separate window. If this signal is not handled, a
GtkWindowwith the inspector will be created and shown, so you only need to handle this signal if you want to use your own window. This signal is emitted afterWebKitWebInspector::detach to show the inspector in a separate window after being detached.To prevent the inspector from being shown you can connect to this signal and simply return
true -
upcall
Theupcallmethod is called from native code. The parameters are marshaled andrun()is executed. -
toCallback
Creates a native function pointer to theupcall(MemorySegment)method.- Specified by:
toCallbackin interfaceFunctionPointer- Parameters:
arena- the arena in which the function pointer is allocated- Returns:
- the native function pointer
-