Interface ListBox.RowSelectedCallback

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

Functional interface declaration of the RowSelectedCallback callback.

See Also:
  • Method Details

    • run

      void run(@Nullable ListBoxRow row)

      Emitted when a new row is selected, or (with a null row) when the selection is cleared.

      When the box is using SelectionMode.MULTIPLE, this signal will not give you the full picture of selection changes, and you should use the Gtk.ListBox::selected-rows-changed signal instead.

    • upcall

      default void upcall(MemorySegment sourceListBox, MemorySegment row)
      The upcall method is called from native code. The parameters are marshaled and run(ListBoxRow) 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