final class Gtk.CellRendererSpin : Gtk.CellRendererText
/* No available fields */
Renders a spin button in a cell
GtkCellRendererSpin renders text in a cell like
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.
also has properties for the
GtkCellRendererSpin:climb-rate and the number
GtkCellRendererSpin:digits to display. Other
can be set in a handler for the
Deprecated since: 4.10
List views use widgets to display their contents.
You should use
Creates a new
Methods inherited from GtkCellRendererText (1)
Sets the height of a renderer to explicitly be determined by the “font” and
“y_pad” property set on it. Further changes in these properties do not
affect the height, so they must be accompanied by a subsequent call to this
function. Using this function is inflexible, and should really only be used
if calculating the size of a cell is too slow (ie, a massive number of cells
number_of_rows is -1, then the fixed height is unset, and
the height is determined by the properties again.
The adjustment that holds the value of the spinbutton.
This must be non-
NULL for the cell renderer to be editable.
The acceleration rate when you hold down a button.
The number of decimal places to display.
Properties inherited from GtkCellRendererText (46)
Specifies how to align the lines of text with respect to each other.
Background color as a
Specifies the preferred place to ellipsize the string, if the cell renderer
does not have enough room to display the entire string. Setting it to
PANGO_ELLIPSIZE_NONE turns off ellipsizing. See the wrap-width property
for another way of making the text fit into a given width.
Foreground color as a
The desired maximum width of the cell, in characters. If this property is set to -1, the width will be calculated automatically.
The text that will be displayed in the
TRUE and the cell is empty.
The desired width of the cell, in characters. If this property is set to -1, the width will be calculated automatically, otherwise the cell will request either 3 characters or the property value, whichever is greater.
Specifies how to break the string into multiple lines, if the cell renderer does not have enough room to display the entire string. This property has no effect unless the wrap-width property is set.
Specifies the minimum width at which the text is wrapped. The wrap-mode property can be used to influence at what character positions the line breaks can be placed. Setting wrap-width to -1 turns wrapping off.
Properties inherited from GtkCellRenderer (15)
Cell background as a
Signals inherited from GtkCellRendererText (1)
This signal is emitted after
renderer has been edited.
Signals inherited from GtkCellRenderer (2)
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.
This signal gets emitted when a cell starts to be edited.
The intended use of this signal is to do special setup
editable, e.g. adding a
GtkEntryCompletion or setting
up additional columns in a