gtk.cell_renderer_spin

Module for [CellRendererSpin] class

Types 3

Renders a spin button in a cell

gtk.cell_renderer_spin.CellRendererSpin 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_spin.CellRendererSpin offers a gtk.spin_button.SpinButton 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. gtk.cell_renderer_spin.CellRendererSpin also has properties for the GtkCellRendererSpin:climb-rate and the number of GtkCellRendererSpin:digits to display. Other gtk.spin_button.SpinButton properties 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.spin_button.SpinButton instead

Methods
GType _getGType() static nothrow
GType _gType() @property nothrow
CellRendererSpin self() nothrowReturns `this`, for use in `with` statements.
CellRendererSpinGidBuilder builder() static nothrowGet builder for [gtk.cell_renderer_spin.CellRendererSpin] Returns: New builder object
gtk.adjustment.Adjustment adjustment() @property nothrowGet `adjustment` property. Returns: The adjustment that holds the value of the spinbutton. This must be non-null for the cell renderer to be editable.
void adjustment(gtk.adjustment.Adjustment propval) @property nothrowSet `adjustment` property. Params: propval = The adjustment that holds the value of the spinbutton. This must be non-null for the cell renderer to be editable.
double climbRate() @property nothrowGet `climbRate` property. Returns: The acceleration rate when you hold down a button.
void climbRate(double propval) @property nothrowSet `climbRate` property. Params: propval = The acceleration rate when you hold down a button.
uint digits() @property nothrowGet `digits` property. Returns: The number of decimal places to display.
void digits(uint propval) @property nothrowSet `digits` property. Params: propval = The number of decimal places to display.
Constructors
this(void * ptr, Flag!"Take" take)
this()Creates a new [gtk.cell_renderer_spin.CellRendererSpin]. Returns: a new [gtk.cell_renderer_spin.CellRendererSpin]

Fluent builder implementation template for gtk.cell_renderer_spin.CellRendererSpin

Methods
T adjustment(gtk.adjustment.Adjustment propval) nothrowSet `adjustment` property. Params: propval = The adjustment that holds the value of the spinbutton. This must be non-null for the cell renderer to be editable. Returns: Builder instance for fluent ...
T climbRate(double propval) nothrowSet `climbRate` property. Params: propval = The acceleration rate when you hold down a button. Returns: Builder instance for fluent chaining
T digits(uint propval) nothrowSet `digits` property. Params: propval = The number of decimal places to display. Returns: Builder instance for fluent chaining