It derives from <AdwActionRow>.
An ActionRow with an embedded spin button.
Example of an <AdwSpinRow> UI definition:
<object class="AdwSpinRow">
<property name="title" translatable="yes">Spin Row</property>
<property name="adjustment">
<object class="GtkAdjustment">
<property name="lower">0</property>
<property name="upper">100</property>
<property name="value">50</property>
<property name="page-increment">10</property>
<property name="step-increment">1</property>
</object>
</property>
</object>
See <GtkSpinButton> for details.
<AdwSpinRow> has the same structure as
ActionRow, as well as the .spin style class on the main
node.
<AdwSpinRow> uses an internal
<GtkSpinButton> with the
Gtk.AccessibleRole.spin-button role.
The adjustment that holds the value of the spin row.
Its value is a <GtkAdjustment>, or
#f.
Set it with (set! (spin-row:adjustment self) value).
The acceleration rate when you hold down a button or key.
Its value is a real number.
Set it with (set! (spin-row:climb-rate self) value).
The number of decimal places to display.
Its value is an unsigned 32-bit integer.
Set it with (set! (spin-row:digits self) value).
Whether non-numeric characters should be ignored.
Its value is a boolean.
Set it with (set! (spin-row:numeric self) value).
Whether invalid values are snapped to the nearest step increment.
Its value is a boolean.
Set it with (set! (spin-row:snap-to-ticks self) value).
The policy for updating the spin row.
The options are always, or only when the value is invalid.
Its value is a
<GtkSpinButtonUpdatePolicy>
(or, to set it, one of its symbols).
Set it with (set! (spin-row:update-policy self) value).
The current value.
Its value is a real number.
Set it with (set! (spin-row:value self) value).
Whether the spin row should wrap upon reaching its limits.
Its value is a boolean.
Set it with (set! (spin-row:wrap self) value).
Changes the properties of an existing spin row.
The adjustment, climb rate, and number of decimal places are updated accordingly.
Passed: a <AdwSpinRow>.
a spin row
Passed: a <GtkAdjustment>, or #f.
the adjustment that this spin row should use
Passed: a real number.
the new climb rate
Passed: an unsigned 32-bit integer.
the number of decimal places to display
Gets the adjustment that holds the value for the spin row.
Passed: a <AdwSpinRow>.
a spin row
Returned: a <GtkAdjustment>.
the adjustment that holds the spin row’s value
Gets the acceleration rate when you hold down a button or key.
Passed: a <AdwSpinRow>.
a spin row
Returned: a real number.
the acceleration rate when you hold down a button or key
Gets the number of decimal places to display.
Passed: a <AdwSpinRow>.
a spin row
Returned: an unsigned 32-bit integer.
the number of decimal places to display
Gets whether non-numeric characters should be ignored.
Passed: a <AdwSpinRow>.
a spin row
Returned: a boolean.
whether non-numeric characters should be ignored.
Gets whether invalid values are snapped to nearest step increment.
Passed: a <AdwSpinRow>.
a spin row
Returned: a boolean.
whether invalid values are snapped to the nearest step increment
Gets the policy for updating the spin row.
Passed: a <AdwSpinRow>.
a spin row
Returned: a
<GtkSpinButtonUpdatePolicy>.
the policy for updating the spin row
Gets the current value.
Passed: a <AdwSpinRow>.
a spin row
Returned: a real number.
the current value
Gets whether the spin row should wrap upon reaching its limits.
Passed: a <AdwSpinRow>.
a spin row
Returned: a boolean.
whether the spin row should wrap upon reaching its limits
Creates a new <AdwSpinRow>.
Passed: a <GtkAdjustment>, or #f.
the adjustment that this spin row should use
Passed: a real number.
the rate the value changes when holding a button or key
Passed: an unsigned 32-bit integer.
the number of decimal places to display
Returned: a <GtkWidget>.
the newly created <AdwSpinRow>
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 SpinRow.set_digits to correct it.
Passed: a real number.
minimum allowable value
Passed: a real number.
maximum allowable value
Passed: a real number.
increment added or subtracted by spinning the widget
Returned: a <GtkWidget>.
the new <AdwSpinRow>
Sets the adjustment that holds the value for the spin row.
Passed: a <AdwSpinRow>.
a spin row
Passed, or left out: a <GtkAdjustment>, or
#f.
an adjustment
Sets the acceleration rate when you hold down a button or key.
Passed: a <AdwSpinRow>.
a spin row
Passed: a real number.
the acceleration rate when you hold down a button or key
Sets the number of decimal places to display.
Passed: a <AdwSpinRow>.
a spin row
Passed: an unsigned 32-bit integer.
the number of decimal places to display
Sets whether non-numeric characters should be ignored.
Passed: a <AdwSpinRow>.
a spin row
Passed: a boolean.
whether non-numeric characters should be ignored
Sets the minimum and maximum allowable values for self.
If the current value is outside this range, it will be adjusted to fit within the range, otherwise it will remain unchanged.
Passed: a <AdwSpinRow>.
a spin row
Passed: a real number.
minimum allowable value
Passed: a real number.
maximum allowable value
Sets whether invalid values are snapped to the nearest step increment.
Passed: a <AdwSpinRow>.
a spin row
Passed: a boolean.
whether invalid values are snapped to the nearest step increment
Sets the policy for updating the spin row.
The options are always, or only when the value is invalid.
Passed: a <AdwSpinRow>.
a spin row
Passed: a
<GtkSpinButtonUpdatePolicy>, or
one of its symbols.
the policy for updating the spin row
Sets the current value.
Passed: a <AdwSpinRow>.
a spin row
Passed: a real number.
a new value
Sets whether the spin row should wrap upon reaching its limits.
Passed: a <AdwSpinRow>.
a spin row
Passed: a boolean.
whether the spin row should wrap upon reaching its limits
Manually force an update of the spin row.
Passed: a <AdwSpinRow>.
a spin row
Connect a handler with (connect object spin-row:input handler).
It is called as (handler self) ⇒ %return new-value.
Emitted to convert the user’s input into a double value.
The signal handler is expected to use editable:get-text to retrieve the text of the spinbutton
and set new_value to the new value.
The default conversion uses strtod.
See spin-button:input.
Passed: a <AdwSpinRow>.
Returned: a 32-bit integer.
TRUE for a successful conversion, FALSE if the input was
not handled, and Gtk.INPUT_ERROR if the conversion failed.
Returned: a real number.
return location for the new value
Connect a handler with (connect object spin-row:output handler).
It is called as (handler self) ⇒ %return.
Emitted to tweak the formatting of the value for display.
See spin-button:output.
Passed: a <AdwSpinRow>.
Returned: a boolean.
TRUE if the value has been displayed
Connect a handler with (connect object spin-row:wrapped handler).
It is called as (handler self).
Emitted right after the spinbutton wraps.
See spin-button:wrapped.
Passed: a <AdwSpinRow>.