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 widget activated when @self is activated.
Gets the adjustment that holds the value for the spin row.
Gets the acceleration rate when you hold down a button or key.
Gets the icon name for @self.
Gets whether non-numeric characters should be ignored.
Gets whether invalid values are snapped to nearest step increment.
Gets the subtitle for @self.
Gets the number of lines at the end of which the subtitle label will be ellipsized.
Gets whether the user can copy the subtitle from the label
Gets the number of lines at the end of which the title label will be ellipsized.
Gets whether the user can copy the title from the label
Gets the policy for updating the spin row.
Gets whether to use Pango markup for the title label.
Gets whether an embedded underline in the title indicates a mnemonic.
Sets the widget to activate when @self is activated.
Sets the adjustment that holds the value for the spin row.
Sets the acceleration rate when you hold down a button or key.
Sets the icon name for @self.
Sets whether non-numeric characters should be ignored.
Sets whether invalid values are snapped to the nearest step increment.
Sets the subtitle for @self.
Sets the number of lines at the end of which the subtitle label will be ellipsized.
Sets whether the user can copy the subtitle from the label
Sets the number of lines at the end of which the title label will be ellipsized.
Sets whether the user can copy the title from the label
Sets the policy for updating the spin row.
Sets whether to use Pango markup for the title label.
Sets whether an embedded underline in the title indicates a mnemonic.