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.
<group>Trees and Lists</group>
function "+" (W : Gtk_Cell_Editable) return Gtk_Cell_Editable
type Cb_GObject_Void is not null access procedure
(Self : access Glib.Object.GObject_Record'Class);
type Cb_Gtk_Cell_Editable_Void is not null access procedure (Self : Gtk_Cell_Editable);
subtype Cell_Editable_Interface_Descr is Glib.Object.Interface_Description;
Editing_Canceled_Property : constant Glib.Properties.Property_Boolean;
Indicates whether editing on the cell has been canceled.
procedure Editing_Done (Cell_Editable : Gtk_Cell_Editable)
Emits the GtkCellEditable::editing-done signal. Deprecated since 4.10, 1
function Get_Type return Glib.GType
type Gtk_Cell_Editable is new Glib.Types.GType_Interface;
Null_Gtk_Cell_Editable : constant Gtk_Cell_Editable;
procedure On_Editing_Done
(Self : Gtk_Cell_Editable;
Call : Cb_GObject_Void;
Slot : not null access Glib.Object.GObject_Record'Class;
After : Boolean := False)
This signal is a sign for the cell renderer to update its value from the Cell_Editable.
Implementations of GtkCellEditable are responsible for emitting this signal when they are done editing, e.g. GtkEntry emits this signal when the user presses Enter. Typical things to do in a handler for ::editing-done are to capture the edited value, disconnect the Cell_Editable from signals on the GtkCellRenderer, etc.
Gtk.Cell_Editable.Editing_Done is a convenience method for emitting GtkCellEditable::editing-done.
procedure On_Editing_Done
(Self : Gtk_Cell_Editable;
Call : Cb_Gtk_Cell_Editable_Void;
After : Boolean := False)
This signal is a sign for the cell renderer to update its value from the Cell_Editable.
Implementations of GtkCellEditable are responsible for emitting this signal when they are done editing, e.g. GtkEntry emits this signal when the user presses Enter. Typical things to do in a handler for ::editing-done are to capture the edited value, disconnect the Cell_Editable from signals on the GtkCellRenderer, etc.
Gtk.Cell_Editable.Editing_Done is a convenience method for emitting GtkCellEditable::editing-done.
procedure On_Remove_Widget
(Self : Gtk_Cell_Editable;
Call : Cb_GObject_Void;
Slot : not null access Glib.Object.GObject_Record'Class;
After : Boolean := False)
This signal is meant to indicate that the cell is finished editing, and the Cell_Editable widget is being removed and may subsequently be destroyed.
Implementations of GtkCellEditable are responsible for emitting this signal when they are done editing. It must be emitted after the GtkCellEditable::editing-done signal, to give the cell renderer a chance to update the cell's value before the widget is removed.
Gtk.Cell_Editable.Remove_Widget is a convenience method for emitting GtkCellEditable::remove-widget.
procedure On_Remove_Widget
(Self : Gtk_Cell_Editable;
Call : Cb_Gtk_Cell_Editable_Void;
After : Boolean := False)
This signal is meant to indicate that the cell is finished editing, and the Cell_Editable widget is being removed and may subsequently be destroyed.
Implementations of GtkCellEditable are responsible for emitting this signal when they are done editing. It must be emitted after the GtkCellEditable::editing-done signal, to give the cell renderer a chance to update the cell's value before the widget is removed.
Gtk.Cell_Editable.Remove_Widget is a convenience method for emitting GtkCellEditable::remove-widget.
procedure Remove_Widget (Cell_Editable : Gtk_Cell_Editable)
Emits the GtkCellEditable::remove-widget signal. Deprecated since 4.10, 1
procedure Set_Editing_Done
(Self : Cell_Editable_Interface_Descr;
Handler : Virtual_Editing_Done)
procedure Set_Remove_Widget
(Self : Cell_Editable_Interface_Descr;
Handler : Virtual_Remove_Widget)
procedure Set_Start_Editing
(Self : Cell_Editable_Interface_Descr;
Handler : Virtual_Start_Editing)
See Glib.Object.Add_Interface
Signal_Editing_Done : constant Glib.Signal_Name := "editing-done";
This signal is a sign for the cell renderer to update its value from the Cell_Editable.
Implementations of GtkCellEditable are responsible for emitting this signal when they are done editing, e.g. GtkEntry emits this signal when the user presses Enter. Typical things to do in a handler for ::editing-done are to capture the edited value, disconnect the Cell_Editable from signals on the GtkCellRenderer, etc.
Gtk.Cell_Editable.Editing_Done is a convenience method for emitting GtkCellEditable::editing-done.
Signal_Remove_Widget : constant Glib.Signal_Name := "remove-widget";
This signal is meant to indicate that the cell is finished editing, and the Cell_Editable widget is being removed and may subsequently be destroyed.
Implementations of GtkCellEditable are responsible for emitting this signal when they are done editing. It must be emitted after the GtkCellEditable::editing-done signal, to give the cell renderer a chance to update the cell's value before the widget is removed.
Gtk.Cell_Editable.Remove_Widget is a convenience method for emitting GtkCellEditable::remove-widget.
procedure Start_Editing
(Cell_Editable : Gtk_Cell_Editable;
Event : Gdk.Event.Gdk_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.
The GdkEvent that began the editing process, or null if editing was initiated programmatically
type Virtual_Editing_Done is access procedure (Cell_Editable : Gtk_Cell_Editable);
Emits the GtkCellEditable::editing-done signal. Deprecated since 4.10, 1
type Virtual_Remove_Widget is access procedure (Cell_Editable : Gtk_Cell_Editable);
Emits the GtkCellEditable::remove-widget signal. Deprecated since 4.10, 1
type Virtual_Start_Editing is access procedure (Cell_Editable : Gtk_Cell_Editable; Event : System.Address);
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.
The GdkEvent that began the editing process, or null if editing was initiated programmatically