CellRendererSpin

open class CellRendererSpin(val gtkCellRendererSpinPointer: <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.SpinButton instead

Renders a spin button in a cell

GtkCellRendererSpin renders text in a cell like GtkCellRendererText from which it is derived. But while GtkCellRendererText offers a simple entry to edit the text, GtkCellRendererSpin offers a GtkSpinButton widget. Of course, that means that the text has to be parseable as a floating point number.

The range of the spinbutton is taken from the adjustment property of the cell renderer, which can be set explicitly or mapped to a column in the tree model, like all properties of cell renders. GtkCellRendererSpin also has properties for the GtkCellRendererSpin:climb-rate and the number of GtkCellRendererSpin:digits to display. Other GtkSpinButton properties can be set in a handler for the GtkCellRenderer::editing-started signal.

Skipped during bindings generation

  • method adjustment: Property has no getter nor setter

  • method climb-rate: Property has no getter nor setter

  • method digits: Property has no getter nor setter

Constructors

Link copied to clipboard
constructor()

This is deprecated since version 4.10.

---

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

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val gtkCellRendererPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
val gtkCellRendererSpinPointer: <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 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 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.

---