The Gtk.Cell_Editable.Gtk_Cell_Editable interface must be implemented for widgets to be usable to edit the contents of a Gtk.Tree_View.Gtk_Tree_View 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 Gtk.Cell_Editable.Gtk_Cell_Editable::editing-done signal.
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 Gtk.Cell_Editable.Gtk_Cell_Editable are responsible for emitting this signal when they are done editing, e.g. Gtk.GEntry.Gtk_Entry 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 Gtk.Cell_Renderer.Gtk_Cell_Renderer, etc.
Gtk.Cell_Editable.Editing_Done is a convenience method for emitting Gtk.Cell_Editable.Gtk_Cell_Editable::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 Gtk.Cell_Editable.Gtk_Cell_Editable are responsible for emitting this signal when they are done editing, e.g. Gtk.GEntry.Gtk_Entry 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 Gtk.Cell_Renderer.Gtk_Cell_Renderer, etc.
Gtk.Cell_Editable.Editing_Done is a convenience method for emitting Gtk.Cell_Editable.Gtk_Cell_Editable::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 Gtk.Cell_Editable.Gtk_Cell_Editable are responsible for emitting this signal when they are done editing. It must be emitted after the Gtk.Cell_Editable.Gtk_Cell_Editable::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 Gtk.Cell_Editable.Gtk_Cell_Editable::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 Gtk.Cell_Editable.Gtk_Cell_Editable are responsible for emitting this signal when they are done editing. It must be emitted after the Gtk.Cell_Editable.Gtk_Cell_Editable::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 Gtk.Cell_Editable.Gtk_Cell_Editable::remove-widget.
procedure Remove_Widget (Cell_Editable : Gtk_Cell_Editable)
Emits the Gtk.Cell_Editable.Gtk_Cell_Editable::remove-widget signal.
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 Gtk.Cell_Editable.Gtk_Cell_Editable are responsible for emitting this signal when they are done editing, e.g. Gtk.GEntry.Gtk_Entry 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 Gtk.Cell_Renderer.Gtk_Cell_Renderer, etc.
Gtk.Cell_Editable.Editing_Done is a convenience method for emitting Gtk.Cell_Editable.Gtk_Cell_Editable::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 Gtk.Cell_Editable.Gtk_Cell_Editable are responsible for emitting this signal when they are done editing. It must be emitted after the Gtk.Cell_Editable.Gtk_Cell_Editable::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 Gtk.Cell_Editable.Gtk_Cell_Editable::remove-widget.
procedure Start_Editing
(Cell_Editable : Gtk_Cell_Editable;
Event : Gdk.Event.Gdk_Event)
Begins editing on a Cell_Editable. The Gtk.Cell_Renderer.Gtk_Cell_Renderer for the cell creates and returns a Gtk.Cell_Editable.Gtk_Cell_Editable from Gtk.Cell_Renderer.Start_Editing, configured for the Gtk.Cell_Renderer.Gtk_Cell_Renderer type. Gtk.Cell_Editable.Start_Editing can then set up Cell_Editable suitably for editing a cell, e.g. making the Esc key emit Gtk.Cell_Editable.Gtk_Cell_Editable::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 Gdk.Event.Gdk_Event 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 Gtk.Cell_Editable.Gtk_Cell_Editable::editing-done signal.
type Virtual_Remove_Widget is access procedure (Cell_Editable : Gtk_Cell_Editable);
Emits the Gtk.Cell_Editable.Gtk_Cell_Editable::remove-widget signal.
type Virtual_Start_Editing is access procedure
(Cell_Editable : Gtk_Cell_Editable;
Event : Gdk.Event.Gdk_Event);
Begins editing on a Cell_Editable. The Gtk.Cell_Renderer.Gtk_Cell_Renderer for the cell creates and returns a Gtk.Cell_Editable.Gtk_Cell_Editable from gtk_cell_renderer_start_editing, configured for the Gtk.Cell_Renderer.Gtk_Cell_Renderer type. Gtk.Cell_Editable.Start_Editing can then set up Cell_Editable suitably for editing a cell, e.g. making the Esc key emit Gtk.Cell_Editable.Gtk_Cell_Editable::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 Gdk.Event.Gdk_Event that began the editing process, or null if editing was initiated programmatically