Interface Notebook.CreateWindowCallback

All Superinterfaces:
FunctionPointer
Enclosing class:
Notebook
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 Notebook.CreateWindowCallback extends FunctionPointer

Functional interface declaration of the CreateWindowCallback callback.

See Also:
  • Method Details

    • run

      Notebook run(@Nullable Widget page)

      The ::create-window signal is emitted when a detachable tab is dropped on the root window.

      A handler for this signal can create a window containing a notebook where the tab will be attached. It is also responsible for moving/resizing the window and adding the necessary properties to the notebook (e.g. the GtkNotebook:group-name ).

    • upcall

      default MemorySegment upcall(MemorySegment sourceNotebook, MemorySegment page)
      The upcall method is called from native code. The parameters are marshaled and run(Widget) is executed.
    • toCallback

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