Interface WebInspector.BringToFrontCallback

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.BringToFrontCallback extends FunctionPointer

Functional interface declaration of the BringToFrontCallback callback.

See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    run()
    Emitted when the inspector should be shown.
    Creates a native function pointer to the upcall(MemorySegment) method.
    default int
    upcall(MemorySegment sourceWebInspector)
    The upcall method is called from native code.
  • Method Details

    • run

      boolean run()

      Emitted when the inspector should be shown.

      If the inspector is not attached the inspector window should be shown on top of any other windows. If the inspector is attached the inspector view should be made visible. For example, if the inspector view is attached using a tab in a browser window, the browser window should be raised and the tab containing the inspector view should be the active one. In both cases, if this signal is not handled, the default implementation calls gtk_window_present() on the current toplevel GtkWindow of the inspector view.

    • upcall

      default int upcall(MemorySegment sourceWebInspector)
      The upcall method is called from native code. The parameters are marshaled and run() is executed.
    • toCallback

      default MemorySegment toCallback(Arena arena)
      Creates a native function pointer to the upcall(MemorySegment) method.
      Specified by:
      toCallback in interface FunctionPointer
      Parameters:
      arena - the arena in which the function pointer is allocated
      Returns:
      the native function pointer