type Gtk_Cell_Renderer_Spin_Record is new Gtk.Cell_Renderer_Text.Gtk_Cell_Renderer_Text_Record with private;
type Gtk_Cell_Renderer_Spin is access all Gtk_Cell_Renderer_Spin_Record'Class;
Adjustment_Property : constant Glib.Properties.Property_Object;
Climb_Rate_Property : constant Glib.Properties.Property_Double;
Digits_Property : constant Glib.Properties.Property_Uint;
procedure Gtk_New
( | Widget | : out Gtk_Cell_Renderer_Spin); |
procedure Initialize
( | Widget | : access Gtk_Cell_Renderer_Spin_Record'Class); |
Gtk_Cell_Renderer_Spin renders text in a cell like Gtk_Cell_Renderer_Text from which it is derived. But while Gtk_Cell_Renderer_Text offers a simple entry to edit the text, Gtk_Cell_Renderer_Spin offers a 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 also has properties for the climb rate and the number of digits to display.
Other Gtk_Spin_Button properties can be set in a handler for the start-editing signal.
The Gtk_Cell_Renderer_Spin cell renderer was added in GTK+ 2.10.
Binding from C File version 2.16.6