Package: gtk

Class gtk-cell-renderer-spin

Superclasses

gtk-cell-renderer-text, gtk-cell-renderer, g-object, common-lisp:standard-object, common-lisp:t

Documented Subclasses

None

Direct Slots

adjustment
The adjustment property of type gtk-adjustment (Read / Write)
The adjustment that holds the value of the spin button. This must be non-nil for the cell renderer to be editable.
climb-rate
The climb-rate property of type :double (Read / Write)
The acceleration rate when you hold down a button.
Allowed values: >= 0
Default value: 0
digits
The digits property of type :uint (Read / Write)
The number of decimal places to display.
Allowed values: <= 20
Default value: 0

Details

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 spin button 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 "editing-started" signal.

The gtk-cell-renderer-spin cell renderer was added in GTK+ 2.10.
 

Slot Access Functions

Inherited Slot Access Functions

gtk-cell-renderer-text-align-set
gtk-cell-renderer-text-alignment
gtk-cell-renderer-text-attributes
gtk-cell-renderer-text-background
gtk-cell-renderer-text-background-gdk
gtk-cell-renderer-text-background-rgba
gtk-cell-renderer-text-background-set
gtk-cell-renderer-text-editable
gtk-cell-renderer-text-editable-set
gtk-cell-renderer-text-ellipsize
gtk-cell-renderer-text-ellipsize-set
gtk-cell-renderer-text-family
gtk-cell-renderer-text-family-set
gtk-cell-renderer-text-font
gtk-cell-renderer-text-font-desc
gtk-cell-renderer-text-foreground
gtk-cell-renderer-text-foreground-gdk
gtk-cell-renderer-text-foreground-rgba
gtk-cell-renderer-text-foreground-set
gtk-cell-renderer-text-language
gtk-cell-renderer-text-language-set
gtk-cell-renderer-text-markup
gtk-cell-renderer-text-max-width-chars
gtk-cell-renderer-text-placeholder-text
gtk-cell-renderer-text-rise
gtk-cell-renderer-text-rise-set
gtk-cell-renderer-text-scale
gtk-cell-renderer-text-scale-set
gtk-cell-renderer-text-single-paragraph-mode
gtk-cell-renderer-text-size
gtk-cell-renderer-text-size-points
gtk-cell-renderer-text-size-set
gtk-cell-renderer-text-stretch
gtk-cell-renderer-text-stretch-set
gtk-cell-renderer-text-strikethrough
gtk-cell-renderer-text-strikethrough-set
gtk-cell-renderer-text-style
gtk-cell-renderer-text-style-set
gtk-cell-renderer-text-text
gtk-cell-renderer-text-underline
gtk-cell-renderer-text-underline-set
gtk-cell-renderer-text-variant
gtk-cell-renderer-text-variant-set
gtk-cell-renderer-text-weight
gtk-cell-renderer-text-weight-set
gtk-cell-renderer-text-width-chars
gtk-cell-renderer-text-wrap-mode
gtk-cell-renderer-text-wrap-width
gtk-cell-renderer-cell-background
gtk-cell-renderer-cell-background-gdk
gtk-cell-renderer-cell-background-rgba
gtk-cell-renderer-cell-background-set
gtk-cell-renderer-editing
gtk-cell-renderer-height
gtk-cell-renderer-is-expanded
gtk-cell-renderer-is-expander
gtk-cell-renderer-mode
gtk-cell-renderer-sensitive
gtk-cell-renderer-visible
gtk-cell-renderer-width
gtk-cell-renderer-xalign
gtk-cell-renderer-xpad
gtk-cell-renderer-yalign
gtk-cell-renderer-ypad
g-object-has-reference
g-object-pointer
g-object-signal-handlers

See also

2020-6-14