]> Pileus Git - ~andy/gtk/blob - docs/reference/gtk/tmpl/gtkcellrendererspin.sgml
2.10.1
[~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 <!-- ##### STRUCT GtkCellRendererSpin ##### -->
37 <para>
38
39 </para>
40
41
42 <!-- ##### ARG GtkCellRendererSpin:adjustment ##### -->
43 <para>
44
45 </para>
46
47 <!-- ##### ARG GtkCellRendererSpin:climb-rate ##### -->
48 <para>
49
50 </para>
51
52 <!-- ##### ARG GtkCellRendererSpin:digits ##### -->
53 <para>
54
55 </para>
56
57 <!-- ##### FUNCTION gtk_cell_renderer_spin_new ##### -->
58 <para>
59
60 </para>
61
62 @Returns: 
63
64