13
13
+----GtkCellRenderer
14
14
+----GtkCellRendererText
15
15
+----GtkCellRendererSpin}}
16
\section{Detailed Description}{\verb{\link{GtkCellRendererSpin}} renders text in a cell like \verb{\link{GtkCellRendererText}} from
17
which it is derived. But while \verb{\link{GtkCellRendererText}} offers a simple entry to
18
edit the text, \verb{\link{GtkCellRendererSpin}} offers a \verb{\link{GtkSpinButton}} widget. Of course,
16
\section{Detailed Description}{\code{\link{GtkCellRendererSpin}} renders text in a cell like \code{\link{GtkCellRendererText}} from
17
which it is derived. But while \code{\link{GtkCellRendererText}} offers a simple entry to
18
edit the text, \code{\link{GtkCellRendererSpin}} offers a \code{\link{GtkSpinButton}} widget. Of course,
19
19
that means that the text has to be parseable as a floating point number.
21
21
The range of the spinbutton is taken from the adjustment property of the
22
cell renderer, which can be set explicitly or mapped to a column in the
23
tree model, like all properties of cell renders. \verb{\link{GtkCellRendererSpin}}
22
cell renderer, which can be set explicitly or mapped to a column in the
23
tree model, like all properties of cell renders. \code{\link{GtkCellRendererSpin}}
24
24
also has properties for the climb rate and the number of digits to
25
display. Other \verb{\link{GtkSpinButton}} properties can be set in a handler for the
25
display. Other \code{\link{GtkSpinButton}} properties can be set in a handler for the
26
26
start-editing signal.
28
The \verb{\link{GtkCellRendererSpin}} cell renderer was added in GTK+ 2.10.}
28
The \code{\link{GtkCellRendererSpin}} cell renderer was added in GTK+ 2.10.}
29
29
\section{Structures}{\describe{\item{\verb{GtkCellRendererSpin}}{
34
34
\section{Convenient Construction}{\code{gtkCellRendererSpin} is the equivalent of \code{\link{gtkCellRendererSpinNew}}.}
35
35
\section{Properties}{\describe{
36
\item{\verb{adjustment} [\verb{\link{GtkAdjustment}} : * : Read / Write]}{
38
The adjustment that holds the value of the spinbutton.
39
This must be non-\code{NULL} for the cell renderer to be editable.
36
\item{\verb{adjustment} [\code{\link{GtkAdjustment}} : * : Read / Write]}{
38
The adjustment that holds the value of the spinbutton.
39
This must be non-\code{NULL} for the cell renderer to be editable.
44
43
\item{\verb{climb-rate} [numeric : Read / Write]}{
46
The acceleration rate when you hold down a button.
48
Allowed values: >= 0 Default value: 0 Since 2.10
45
The acceleration rate when you hold down a button.
46
Allowed values: >= 0 Default value: 0 Since 2.10
51
49
\item{\verb{digits} [numeric : Read / Write]}{
53
The number of decimal places to display.
55
Allowed values: <= 20 Default value: 0 Since 2.10
51
The number of decimal places to display.
52
Allowed values: <= 20 Default value: 0 Since 2.10
59
\references{\url{http://developer.gnome.org/doc/API/2.0/gtk/GtkCellRendererSpin.html}}
56
\references{\url{http://library.gnome.org/devel//gtk/GtkCellRendererSpin.html}}
60
57
\author{Derived by RGtkGen from GTK+ documentation}
62
\verb{\link{GtkCellRendererText}}
63
\verb{\link{GtkSpinButton}}
59
\code{\link{GtkCellRendererText}}
60
\code{\link{GtkSpinButton}}