Gtk.Cell_Renderer_Spin.Gtk_Cell_Renderer_Spin renders text in a cell like Gtk.Cell_Renderer_Text.Gtk_Cell_Renderer_Text from which it is derived. But while Gtk.Cell_Renderer_Text.Gtk_Cell_Renderer_Text offers a simple entry to edit the text, Gtk.Cell_Renderer_Spin.Gtk_Cell_Renderer_Spin offers a Gtk.Spin_Button.Gtk_Spin_Button 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.Gtk_Cell_Renderer_Spin also has properties for the Gtk.Cell_Renderer_Spin.Gtk_Cell_Renderer_Spin:climb-rate and the number of Gtk.Cell_Renderer_Spin.Gtk_Cell_Renderer_Spin:digits to display. Other Gtk.Spin_Button.Gtk_Spin_Button properties can be set in a handler for the Gtk.Cell_Renderer.Gtk_Cell_Renderer::editing-started signal.
The Gtk.Cell_Renderer_Spin.Gtk_Cell_Renderer_Spin cell renderer was added in GTK+ 2.10.
Adjustment_Property : constant Glib.Properties.Property_Object;
Type: Gtk.Adjustment.Gtk_Adjustment The adjustment that holds the value of the spinbutton. This must be non-null for the cell renderer to be editable.
Climb_Rate_Property : constant Glib.Properties.Property_Double;
Type: Gdouble The acceleration rate when you hold down a button.
function Get_Type return Glib.GType
type Gtk_Cell_Renderer_Spin is access all Gtk_Cell_Renderer_Spin_Record'Class;
function Gtk_Cell_Renderer_Spin_New return Gtk_Cell_Renderer_Spin
Creates a new Gtk.Cell_Renderer_Spin.Gtk_Cell_Renderer_Spin. Since: gtk+ 2.10
type Gtk_Cell_Renderer_Spin_Record is new Gtk_Cell_Renderer_Text_Record with null record;
procedure Gtk_New (Self : out Gtk_Cell_Renderer_Spin)
Creates a new Gtk.Cell_Renderer_Spin.Gtk_Cell_Renderer_Spin. Since: gtk+ 2.10 Initialize does nothing if the object was already created with another call to Initialize* or G_New.
procedure Initialize
(Self : not null access Gtk_Cell_Renderer_Spin_Record'Class)
Creates a new Gtk.Cell_Renderer_Spin.Gtk_Cell_Renderer_Spin. Since: gtk+ 2.10 Initialize does nothing if the object was already created with another call to Initialize* or G_New.
The_Digits_Property : constant Glib.Properties.Property_Uint;
The number of decimal places to display.