CellRendererCombo

open class CellRendererCombo(    val gtkCellRendererComboPointer: <Error class: unknown class><<Error class: unknown class>>) : CellRendererText(source)

⚠️ Deprecated ⚠️

This is deprecated since version 4.10.

List views use widgets to display their contents. You should use class@Gtk.DropDown instead

Renders a combobox in a cell

GtkCellRendererCombo renders text in a cell like GtkCellRendererText from which it is derived. But while GtkCellRendererText offers a simple entry to edit the text, GtkCellRendererCombo offers a GtkComboBox widget to edit the text. The values to display in the combo box are taken from the tree model specified in the GtkCellRendererCombo: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 GtkCellRendererCombo:text-column property. Further properties of the combo box can be set in a handler for the GtkCellRenderer::editing-started signal.

Skipped during bindings generation

  • method has-entry: Property has no getter nor setter

  • method model: Property has no getter nor setter

  • method text-column: Property has no getter nor setter

Constructors

Link copied to clipboard
constructor()

This is deprecated since version 4.10.

---

constructor(gtkCellRendererComboPointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val gtkCellRendererComboPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
val gtkCellRendererPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
val gtkCellRendererTextPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open var sensitive: Boolean
Link copied to clipboard
open var visible: Boolean

Functions

Link copied to clipboard
open fun activate(    event: <Error class: unknown class>,     widget: Widget,     path: String,     backgroundArea: <Error class: unknown class>,     cellArea: <Error class: unknown class>,     flags: CellRendererState): Boolean

This is deprecated since version 4.10.

---

Link copied to clipboard
fun emitChanged(pathString: String, newIter: TreeIter)

Emits the "changed" signal. See onChanged.

Link copied to clipboard
fun emitEdited(path: String, newText: String)

Emits the "edited" signal. See onEdited.

Link copied to clipboard

Emits the "editing-canceled" signal. See onEditingCanceled.

Link copied to clipboard
fun emitEditingStarted(editable: CellEditable, path: String)

Emits the "editing-started" signal. See onEditingStarted.

Link copied to clipboard
open fun getAlignedArea(    widget: Widget,     flags: CellRendererState,     cellArea: <Error class: unknown class>,     alignedArea: <Error class: unknown class>)

This is deprecated since version 4.10.

---

Link copied to clipboard
open fun getPreferredSize(widget: Widget, minimumSize: Requisition?, naturalSize: Requisition?)

This is deprecated since version 4.10.

---

Link copied to clipboard

This is deprecated since version 4.10.

---

Link copied to clipboard
open fun getState(widget: Widget? = null, cellState: CellRendererState): StateFlags

This is deprecated since version 4.10.

---

Link copied to clipboard

This is deprecated since version 4.10.

---

Link copied to clipboard
fun onChanged(    connectFlags: <Error class: unknown class> = ConnectFlags(0u),     handler: (pathString: String, newIter: TreeIter) -> Unit): <Error class: unknown class>

This signal is emitted each time after the user selected an item in the combo box, either by using the mouse or the arrow keys. Contrary to GtkComboBox, GtkCellRendererCombo::changed is not emitted for changes made to a selected item in the entry. The argument @new_iter corresponds to the newly selected item in the combo box and it is relative to the GtkTreeModel set via the model property on GtkCellRendererCombo.

Link copied to clipboard
fun onEdited(    connectFlags: <Error class: unknown class> = ConnectFlags(0u),     handler: (path: String, newText: String) -> Unit): <Error class: unknown class>

This signal is emitted after @renderer has been edited.

Link copied to clipboard
fun onEditingCanceled(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: () -> Unit): <Error class: unknown class>

This signal gets emitted when the user cancels the process of editing a cell. For example, an editable cell renderer could be written to cancel editing when the user presses Escape.

Link copied to clipboard
fun onEditingStarted(    connectFlags: <Error class: unknown class> = ConnectFlags(0u),     handler: (editable: CellEditable, path: String) -> Unit): <Error class: unknown class>

This signal gets emitted when a cell starts to be edited. The intended use of this signal is to do special setup on @editable, e.g. adding a GtkEntryCompletion or setting up additional columns in a GtkComboBox.

Link copied to clipboard
open fun setAlignment(xalign: <Error class: unknown class>, yalign: <Error class: unknown class>)

This is deprecated since version 4.10.

---

Link copied to clipboard
open fun setFixedHeightFromFont(numberOfRows: <Error class: unknown class>)

This is deprecated since version 4.10.

---

Link copied to clipboard
open fun setFixedSize(width: <Error class: unknown class>, height: <Error class: unknown class>)

This is deprecated since version 4.10.

---

Link copied to clipboard
open fun setPadding(xpad: <Error class: unknown class>, ypad: <Error class: unknown class>)

This is deprecated since version 4.10.

---

Link copied to clipboard
open fun snapshot(    snapshot: Snapshot,     widget: Widget,     backgroundArea: <Error class: unknown class>,     cellArea: <Error class: unknown class>,     flags: CellRendererState)

This is deprecated since version 4.10.

---

Link copied to clipboard
open fun startEditing(    event: <Error class: unknown class>? = null,     widget: Widget,     path: String,     backgroundArea: <Error class: unknown class>,     cellArea: <Error class: unknown class>,     flags: CellRendererState): CellEditable?

This is deprecated since version 4.10.

---

Link copied to clipboard
open fun stopEditing(canceled: Boolean)

This is deprecated since version 4.10.

---