W Wrapl, The Programming Language

Libraries:Gtk:Gtk:ComboBoxEntry

Types

T

Inherits from:

A T is a widget that allows the user to choose from a list of valid choices or enter a different value. It is very similar to a Gtk.Gtk.ComboBox.T, but it displays the selected value in an entry to allow modifying it.

In contrast to a Gtk.Gtk.ComboBox.T, the underlying model of a T must always have a text column (see SetTextColumn), and the entry will show the content of the text column in the selected row. To get the text from the entry, use Gtk.Gtk.ComboBox.GetActiveText.

The changed signal will be emitted while typing into a GtkComboBoxEntry, as well as when selecting an item from the GtkComboBoxEntry's list. Use Gtk.Gtk.ComboBox.GetActive or Gtk.Gtk.ComboBox.GetActiveIter to discover whether an item was actually selected from the list.

Connect to the activate signal of the GtkEntry (use Gtk.Gtk.Bin.GetChild) to detect when the user actually finishes entering text.

The convenience API to construct simple text-only Gtk.Gtk.ComboBox.Tes can also be used with Ts which have been constructed with gtk_combo_box_entry_new_text().

If you have special needs that go beyond a simple entry (e.g. input validation), it is possible to replace the child entry by a different widget using Gtk.Gtk.Container.Remove and Gtk.Gtk.Container.Add.

GtkComboBoxEntry as GtkBuildable

Beyond the <attributes> support that is shared by all GtkCellLayout implementation, GtkComboBoxEntry makes the entry available in UI definitions as an internal child with name "entry".



Constants

Nil : T

Functions

GetType() : Gtk.GObject.Type.T



New() : Gtk.Gtk.ComboBoxEntry.T

Warning

gtk_combo_box_entry_new has been deprecated since version 2.24 and should not be used in newly-written code. Use gtk_combo_box_new_with_entry() instead



NewText() : Gtk.Gtk.ComboBoxEntry.T

Warning

gtk_combo_box_entry_new_text is deprecated and should not be used in newly-written code.



NewWithModel(model @ Gtk.Gtk.TreeModel.T, text_column @ Std.Integer.SmallT) : Gtk.Gtk.ComboBoxEntry.T

Warning

gtk_combo_box_entry_new_with_model has been deprecated since version 2.24 and should not be used in newly-written code. Use gtk_combo_box_new_with_model_and_entry() instead



Methods

:GetTextColumn(self @ T) : Std.Integer.SmallT

Warning

GetTextColumn has been deprecated since version 2.24 and should not be used in newly-written code. Use Gtk.Gtk.ComboBox.GetEntryTextColumn instead



:SetTextColumn(self @ T, text_column @ Std.Integer.SmallT) : Std.Object.T

Warning

SetTextColumn has been deprecated since version 2.24 and should not be used in newly-written code. Use Gtk.Gtk.ComboBox.SetEntryTextColumn instead