Gtk.Cell_Editable

Entities

Simple Types

Access Types

Subtypes

Constants

Subprograms

Description

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
Parameters
W
Return Value

Cb_GObject_Void

type Cb_GObject_Void is not null access procedure
  (Self : access Glib.Object.GObject_Record'Class);
Parameters
Self

Cb_Gtk_Cell_Editable_Void

type Cb_Gtk_Cell_Editable_Void is not null access procedure (Self : Gtk_Cell_Editable);
Parameters
Self

Cell_Editable_Interface_Descr

subtype Cell_Editable_Interface_Descr is Glib.Object.Interface_Description;

Editing_Canceled_Property

Editing_Canceled_Property : constant Glib.Properties.Property_Boolean;

Indicates whether editing on the cell has been canceled.

Editing_Done

procedure Editing_Done (Cell_Editable : Gtk_Cell_Editable)

Emits the Gtk.Cell_Editable.Gtk_Cell_Editable::editing-done signal.

Parameters
Cell_Editable

Get_Type

function Get_Type return Glib.GType
Return Value

Gtk_Cell_Editable

type Gtk_Cell_Editable is new Glib.Types.GType_Interface;

Null_Gtk_Cell_Editable

Null_Gtk_Cell_Editable : constant Gtk_Cell_Editable;

On_Editing_Done

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.

Parameters
Self
Call
Slot
After

On_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.

Parameters
Self
Call
After

On_Remove_Widget

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.

Parameters
Self
Call
Slot
After

On_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.

Parameters
Self
Call
After

Remove_Widget

procedure Remove_Widget (Cell_Editable : Gtk_Cell_Editable)

Emits the Gtk.Cell_Editable.Gtk_Cell_Editable::remove-widget signal.

Parameters
Cell_Editable

Set_Editing_Done

procedure Set_Editing_Done
  (Self    : Cell_Editable_Interface_Descr;
   Handler : Virtual_Editing_Done)
Parameters
Self
Handler

Set_Remove_Widget

procedure Set_Remove_Widget
  (Self    : Cell_Editable_Interface_Descr;
   Handler : Virtual_Remove_Widget)
Parameters
Self
Handler

Set_Start_Editing

procedure Set_Start_Editing
  (Self    : Cell_Editable_Interface_Descr;
   Handler : Virtual_Start_Editing)

See Glib.Object.Add_Interface

Parameters
Self
Handler

Signal_Editing_Done

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

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.

Start_Editing

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.

Parameters
Cell_Editable
Event

The Gdk.Event.Gdk_Event that began the editing process, or null if editing was initiated programmatically

Virtual_Editing_Done

type Virtual_Editing_Done is access procedure (Cell_Editable : Gtk_Cell_Editable);

Emits the Gtk.Cell_Editable.Gtk_Cell_Editable::editing-done signal.

Parameters
Cell_Editable

Virtual_Remove_Widget

type Virtual_Remove_Widget is access procedure (Cell_Editable : Gtk_Cell_Editable);

Emits the Gtk.Cell_Editable.Gtk_Cell_Editable::remove-widget signal.

Parameters
Cell_Editable

Virtual_Start_Editing

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.

Parameters
Cell_Editable
Event

The Gdk.Event.Gdk_Event that began the editing process, or null if editing was initiated programmatically