SpinButton

constructor(adjustment: Adjustment? = null, climbRate: <Error class: unknown class>, digits: <Error class: unknown class>)

Creates a new GtkSpinButton.

Return

The new GtkSpinButton

Parameters

adjustment

the GtkAdjustment that this spin button should use

climbRate

specifies by how much the rate of change in the value will accelerate if you continue to hold down an up/down button or arrow key

digits

the number of decimal places to display


constructor(min: <Error class: unknown class>, max: <Error class: unknown class>, step: <Error class: unknown class>)

Creates a new GtkSpinButton with the given properties.

This is a convenience constructor that allows creation of a numeric GtkSpinButton without manually creating an adjustment. The value is initially set to the minimum value and a page increment of 10 * @step is the default. The precision of the spin button is equivalent to the precision of @step.

Note that the way in which the precision is derived works best if @step is a power of ten. If the resulting precision is not suitable for your needs, use method@Gtk.SpinButton.set_digits to correct it.

Return

The new GtkSpinButton

Parameters

min

Minimum allowable value

max

Maximum allowable value

step

Increment added or subtracted by spinning the widget


constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)