Interface CellRendererCombo.ChangedCallback

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

Functional interface declaration of the ChangedCallback callback.

See Also:
  • Method Details

    • run

      void run(String pathString, @Nullable TreeIter newIter)

      This signal is emitted each time after the user selected an item in the combo box, either by using the mouse or the arrow keys. Contrary to GtkComboBox, GtkCellRendererCombo::changed is not emitted for changes made to a selected item in the entry. The argument newIter corresponds to the newly selected item in the combo box and it is relative to the GtkTreeModel set via the model property on GtkCellRendererCombo.

      Note that as soon as you change the model displayed in the tree view, the tree view will immediately cease the editing operating. This means that you most probably want to refrain from changing the model until the combo cell renderer emits the edited or editing_canceled signal.

    • upcall

      default void upcall(MemorySegment sourceCellRendererCombo, MemorySegment pathString, MemorySegment newIter)
      The upcall method is called from native code. The parameters are marshaled and run(String, TreeIter) is executed.
    • toCallback

      default MemorySegment toCallback(Arena arena)
      Creates a native function pointer to the upcall(MemorySegment, 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