]> Pileus Git - ~andy/gtk/blob - docs/reference/gtk/tmpl/gtkcellrendererspin.sgml
Make 3.0 parallel-installable to 2.x
[~andy/gtk] / docs / reference / gtk / tmpl / gtkcellrendererspin.sgml
1 <!-- ##### SECTION Title ##### -->
2 GtkCellRendererSpin
3
4 <!-- ##### SECTION Short_Description ##### -->
5 Renders a spin button in a cell
6
7 <!-- ##### SECTION Long_Description ##### -->
8 <para>
9 #GtkCellRendererSpin renders text in a cell like #GtkCellRendererText from 
10 which it is derived. But while #GtkCellRendererText offers a simple entry to 
11 edit the text, #GtkCellRendererSpin offers a #GtkSpinButton widget. Of course,
12 that means that the text has to be parseable as a floating point number.
13 </para>
14
15 <para>
16 The range of the spinbutton is taken from the adjustment property of the
17 cell renderer, which can be set explicitly or mapped to a column in the 
18 tree model, like all properties of cell renders. #GtkCellRendererSpin
19 also has properties for the climb rate and the number of digits to
20 display. Other #GtkSpinButton properties can be set in a handler for the
21 start-editing signal.
22 </para>
23
24 <para>
25 The #GtkCellRendererSpin cell renderer was added in GTK+ 2.10.
26 </para>
27
28 <!-- ##### SECTION See_Also ##### -->
29 <para>
30 #GtkCellRendererText, #GtkSpinButton
31 </para>
32
33 <!-- ##### SECTION Stability_Level ##### -->
34
35
36 <!-- ##### SECTION Image ##### -->
37
38
39 <!-- ##### STRUCT GtkCellRendererSpin ##### -->
40 <para>
41
42 </para>
43
44
45 <!-- ##### ARG GtkCellRendererSpin:adjustment ##### -->
46 <para>
47
48 </para>
49
50 <!-- ##### ARG GtkCellRendererSpin:climb-rate ##### -->
51 <para>
52
53 </para>
54
55 <!-- ##### ARG GtkCellRendererSpin:digits ##### -->
56 <para>
57
58 </para>
59
60 <!-- ##### FUNCTION gtk_cell_renderer_spin_new ##### -->
61 <para>
62
63 </para>
64
65 @void: 
66 @Returns: 
67
68