SpinRow
An class@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 class@Gtk.SpinButton for details.
CSS nodes
AdwSpinRow
has the same structure as class@ActionRow, as well as the .spin
style class on the main node.
Accessibility
AdwSpinRow
uses an internal GtkSpinButton
with the GTK_ACCESSIBLE_ROLE_SPIN_BUTTON
role.
Skipped during bindings generation
method
adjustment
: Property TypeInfo of getter and setter do not matchsignal
input
: Unsupported parameternew_value
: new_value: Out parameter is not supported
Since
1.4
Constructors
Creates a new AdwSpinRow
.
Creates a new AdwSpinRow
with the given properties.
Properties
The widget to activate when the row is activated.
Whether invalid values are snapped to the nearest step increment.
The number of lines at the end of which the subtitle label will be ellipsized.
Whether the user can copy the subtitle from the label.
The number of lines at the end of which the title label will be ellipsized.
Whether the user can copy the title from the label.
The policy for updating the spin row.
Whether an embedded underline in the title indicates a mnemonic.
Functions
This signal is emitted after the row has been activated.
Emitted to tweak the formatting of the value for display.
Emitted right after the spinbutton wraps.
Gets the adjustment that holds the value for the spin row.
Gets the subtitle for @self.
Sets the adjustment that holds the value for the spin row.
Sets the subtitle for @self.