SpinRow

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

Creates a new AdwSpinRow.

Return

the newly created AdwSpinRow

Since

1.4

Parameters

adjustment

the adjustment that this spin row should use

climbRate

the rate the value changes when holding a button or key

digits

the number of decimal places to display


constructor(min: Double, max: Double, step: Double)

Creates a new AdwSpinRow with the given properties.

This is a convenience constructor that allows creation of a numeric AdwSpinRow 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 row is equivalent to the precisions of @step.

::: note 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@SpinRow.set_digits to correct it.

Return

the new AdwSpinRow

Since

1.4

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>>)