The class text-input-range
is a pane for entering a number in a given range. Typically there are up and down buttons at the side which can used to quickly adjust the value.
The lowest possible value in the range.
The highest possible value in the range.
The current value in the pane.
A function called when the value is changed by the user.
The type of arguments passed to the callback.
text-input-range-start
text-input-range-end
text-input-range-value
text-input-range-callback
text-input-range-callback-type
The class text-input-range
provides numeric input of integers in a given range (some systems refer to this a spinner or spin-box). The range is controlled by the :start
and :end
initargs. :start
defaults to 0 and :end
defaults to 10. The inital value is set with the :value
initarg (which defaults to 0). The :callback
initarg provides a function to be called whenever the value is changed by the user. The arguments to this function are specified by the :callback-type
initarg (see the callbacks class for details of possible values, noting that the "data" is the value and the "item" is the pane itself). The default callback-type is (:item :data)
.