Class CellEditable

All Implemented Interfaces:
PointerInterface

public class CellEditable extends Interface
Interface for widgets that can be used for editing cells

The `GtkCellEditable` interface must be implemented for widgets to be usable
to edit the contents of a `GtkTreeView` cell. It provides a way to specify how
temporary widgets should be configured for editing, get the new value, etc.

https://docs.gtk.org/gtk4/iface.CellEditable.html

  • Field Details

  • Constructor Details

  • Method Details

    • getClassHandler

      public static ClassHandler getClassHandler()
    • editingDone

      public void editingDone()
      Emits the `GtkCellEditable::editing-done` signal.
    • removeWidget

      public void removeWidget()
      Emits the `GtkCellEditable::remove-widget` signal.
    • startEditing

      public void startEditing(@Nullable Event event)
      Begins editing on a @cell_editable.

      The `GtkCellRenderer` for the cell creates and returns a `GtkCellEditable` from
      gtk_cell_renderer_start_editing(), configured for the `GtkCellRenderer` type.

      gtk_cell_editable_start_editing() can then set up @cell_editable suitably for
      editing a cell, e.g. making the Esc key emit `GtkCellEditable::editing-done`.

      Note that the @cell_editable is created on-demand for the current edit; its
      lifetime is temporary and does not persist across other edits and/or cells.
      Parameters:
      event - The `GdkEvent` that began the editing process, or %NULL if editing was initiated programmatically
    • onEditingDone

      public SignalHandler onEditingDone(CellEditable.OnEditingDone signal)
      Connect to signal "editing-done".
      See CellEditable.OnEditingDone.onEditingDone() for signal description.
      Field SIGNAL_ON_EDITING_DONE contains original signal name and can be used as resource reference.
      Parameters:
      signal - callback function (lambda).
      Returns:
      SignalHandler. Can be used to disconnect signal and to release callback function.
    • onRemoveWidget

      public SignalHandler onRemoveWidget(CellEditable.OnRemoveWidget signal)
      Connect to signal "remove-widget".
      See CellEditable.OnRemoveWidget.onRemoveWidget() for signal description.
      Field SIGNAL_ON_REMOVE_WIDGET contains original signal name and can be used as resource reference.
      Parameters:
      signal - callback function (lambda).
      Returns:
      SignalHandler. Can be used to disconnect signal and to release callback function.
    • getTypeID

      public static long getTypeID()
    • getParentTypeID

      public static long getParentTypeID()
    • getTypeSize

      public static TypeSystem.TypeSize getTypeSize()
    • getParentTypeSize

      public static TypeSystem.TypeSize getParentTypeSize()
    • getInstanceSize

      public static int getInstanceSize()