Gnome::Gtk4::CellRendererSpin
Description
Renders a spin button in a cell
Gnome::Gtk4::CellRendererSpin renders text in a cell like Gnome::Gtk4::CellRendererText from which it is derived. But while Gnome::Gtk4::CellRendererText offers a simple entry to edit the text, Gnome::Gtk4::CellRendererSpin offers a Gnome::Gtk4::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. Gnome::Gtk4::CellRendererSpin also has properties for the Gnome::Gtk4::CellRendererSpin:climb-rate` and the number of Gnome::Gtk4::CellRendererSpin:digits` to display. Other Gnome::Gtk4::SpinButton properties can be set in a handler for the Gnome::Gtk4::CellRenderer::editing-started` signal.
Class initialization
Note: The native version of this class is deprecated in gtk4-lib() since version 4.10
new
:native-object
Create an object using a native object from elsewhere. See also Gnome::N::TopLevelSupportClass.
multi method new ( N-Object :$native-object! )
new-cellrendererspin
Note: The native version of this routine is deprecated in gtk4-lib() since version 4.10
Creates a new Gnome::Gtk4::CellRendererSpin.
method new-cellrendererspin ( --> Gnome::Gtk4::CellRendererSpin \)