SpinRow.newWithRange

Creates a new adw.spin_row.SpinRow with the given properties.

This is a convenience constructor that allows creation of a numeric adw.spin_row.SpinRow 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 adw.spin_row.SpinRow.setDigits to correct it.

class SpinRow
static
newWithRange
(
double min
,
double max
,
double step
)

Parameters

min double

minimum allowable value

max double

maximum allowable value

step double

increment added or subtracted by spinning the widget

Return Value

Type: adw.spin_row.SpinRow