gtk.cell_renderer_combo

Module for [CellRendererCombo] class

Types 3

Renders a combobox in a cell

[gtk.cell_renderer_combo.CellRendererCombo] renders text in a cell like [gtk.cell_renderer_text.CellRendererText] from which it is derived. But while [gtk.cell_renderer_text.CellRendererText] offers a simple entry to edit the text, [gtk.cell_renderer_combo.CellRendererCombo] offers a [gtk.combo_box.ComboBox] widget to edit the text. The values to display in the combo box are taken from the tree model specified in the [gtk.cell_renderer_combo.CellRendererCombo]:model property.

The combo cell renderer takes care of adding a text cell renderer to the combo box and sets it to display the column specified by its [gtk.cell_renderer_combo.CellRendererCombo]:text-column property. Further properties of the combo box can be set in a handler for the GtkCellRenderer::editing-started signal.

Deprecated

List views use widgets to display their contents. You

should use [gtk.drop_down.DropDown] instead

Methods
GType _gType() @property
CellRendererCombo self()Returns `this`, for use in `with` statements.
CellRendererComboGidBuilder builder()Get builder for [gtk.cellrenderercombo.CellRendererCombo] Returns: New builder object
bool hasEntry() @propertyGet `hasEntry` property. Returns: If true, the cell renderer will include an entry and allow to enter values other than the ones in the popup list.
void hasEntry(bool propval) @propertySet `hasEntry` property. Params: propval = If true, the cell renderer will include an entry and allow to enter values other than the ones in the popup list.
gtk.tree_model.TreeModel model() @propertyGet `model` property. Returns: Holds a tree model containing the possible values for the combo box. Use the text_column property to specify the column holding the values.
void model(gtk.tree_model.TreeModel propval) @propertySet `model` property. Params: propval = Holds a tree model containing the possible values for the combo box. Use the text_column property to specify the column holding the values.
int textColumn() @propertyGet `textColumn` property. Returns: Specifies the model column which holds the possible values for the combo box.
void textColumn(int propval) @propertySet `textColumn` property. Params: propval = Specifies the model column which holds the possible values for the combo box.
gulong connectChanged(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == void) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] == string))) && (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] == gtk.tree_iter.TreeIter))) && (Parameters!T.length < 3 || (ParameterStorageClassTuple!T[2] == ParameterStorageClass.none && is(Parameters!T[2] : gtk.cell_renderer_combo.CellRendererCombo))) && Parameters!T.length < 4)Connect to `Changed` signal.
Constructors
this(void * ptr, Flag!"Take" take)
this()Creates a new [gtk.cellrenderercombo.CellRendererCombo]. Adjust how text is drawn using object properties. Object properties can be set globally (with [gobject.object.ObjectWrap.set]). Also, with [...
Methods
T hasEntry(bool propval)Set `hasEntry` property. Params: propval = If true, the cell renderer will include an entry and allow to enter values other than the ones in the popup list. Returns: Builder instance for fluent cha...
T model(gtk.tree_model.TreeModel propval)Set `model` property. Params: propval = Holds a tree model containing the possible values for the combo box. Use the text_column property to specify the column holding the values. Returns: Builder ...
T textColumn(int propval)Set `textColumn` property. Params: propval = Specifies the model column which holds the possible values for the combo box.

Fluent builder for [gtk.cell_renderer_combo.CellRendererCombo]