Class

AdwSpinRow

Description [src]

final class Adw.SpinRow : Adw.ActionRow {
  /* No available fields */
}

An AdwActionRow with an embedded spin button.

spin-row

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.

CSS nodes

AdwSpinRow has the same structure as AdwActionRow, as well as the .spin style class on the main node.

Available since:1.4

Ancestors

Implements

  • GtkAccessible
  • GtkActionable
  • GtkBuildable
  • GtkConstraintTarget
  • GtkEditable

Constructors

adw_spin_row_new

Creates a new AdwSpinRow.

Available since: 1.4

adw_spin_row_new_with_range

Creates a new AdwSpinRow with the given properties.

Available since: 1.4

Instance methods

adw_spin_row_configure

Changes the properties of an existing spin row.

Available since: 1.4

adw_spin_row_get_adjustment

Gets the adjustment that holds the value for the spin row.

Available since: 1.4

adw_spin_row_get_climb_rate

Gets the acceleration rate when you hold down a button or key.

Available since: 1.4

adw_spin_row_get_digits

Gets the number of decimal places to display.

Available since: 1.4

adw_spin_row_get_numeric

Gets whether non-numeric characters should be ignored.

Available since: 1.4

adw_spin_row_get_snap_to_ticks

Gets whether invalid values are snapped to nearest step increment.

Available since: 1.4

adw_spin_row_get_update_policy

Gets the policy for updating the spin row.

Available since: 1.4

adw_spin_row_get_value

Gets the current value.

Available since: 1.4

adw_spin_row_get_wrap

Gets whether the spin row should wrap upon reaching its limits.

Available since: 1.4

adw_spin_row_set_adjustment

Sets the adjustment that holds the value for the spin row.

Available since: 1.4

adw_spin_row_set_climb_rate

Sets the acceleration rate when you hold down a button or key.

Available since: 1.4

adw_spin_row_set_digits

Sets the number of decimal places to display.

Available since: 1.4

adw_spin_row_set_numeric

Sets whether non-numeric characters should be ignored.

Available since: 1.4

adw_spin_row_set_range

Sets the minimum and maximum allowable values for self.

Available since: 1.4

adw_spin_row_set_snap_to_ticks

Sets whether invalid values are snapped to the nearest step increment.

Available since: 1.4

adw_spin_row_set_update_policy

Sets the policy for updating the spin row.

Available since: 1.4

adw_spin_row_set_value

Sets the current value.

Available since: 1.4

adw_spin_row_set_wrap

Sets whether the spin row should wrap upon reaching its limits.

Available since: 1.4

adw_spin_row_update

Manually force an update of the spin row.

Available since: 1.4

Methods inherited from AdwActionRow (16)
adw_action_row_activate

Activates self.

adw_action_row_add_prefix

Adds a prefix widget to self.

adw_action_row_add_suffix

Adds a suffix widget to self.

adw_action_row_get_activatable_widget

Gets the widget activated when self is activated.

adw_action_row_get_icon_name

Gets the icon name for self.

Deprecated since: 1.3

adw_action_row_get_subtitle

Gets the subtitle for self.

adw_action_row_get_subtitle_lines

Gets the number of lines at the end of which the subtitle label will be ellipsized.

adw_action_row_get_subtitle_selectable

Gets whether the user can copy the subtitle from the label.

Available since: 1.3

adw_action_row_get_title_lines

Gets the number of lines at the end of which the title label will be ellipsized.

adw_action_row_remove

Removes a child from self.

adw_action_row_set_activatable_widget

Sets the widget to activate when self is activated.

adw_action_row_set_icon_name

Sets the icon name for self.

Deprecated since: 1.3

adw_action_row_set_subtitle

Sets the subtitle for self.

adw_action_row_set_subtitle_lines

Sets the number of lines at the end of which the subtitle label will be ellipsized.

adw_action_row_set_subtitle_selectable

Sets whether the user can copy the subtitle from the label.

Available since: 1.3

adw_action_row_set_title_lines

Sets the number of lines at the end of which the title label will be ellipsized.

Methods inherited from AdwPreferencesRow (8)
adw_preferences_row_get_title

Gets the title of the preference represented by self.

adw_preferences_row_get_title_selectable

Gets whether the user can copy the title from the label.

Available since: 1.1

adw_preferences_row_get_use_markup

Gets whether to use Pango markup for the title label.

Available since: 1.2

adw_preferences_row_get_use_underline

Gets whether an embedded underline in the title indicates a mnemonic.

adw_preferences_row_set_title

Sets the title of the preference represented by self.

adw_preferences_row_set_title_selectable

Sets whether the user can copy the title from the label.

Available since: 1.1

adw_preferences_row_set_use_markup

Sets whether to use Pango markup for the title label.

Available since: 1.2

adw_preferences_row_set_use_underline

Sets whether an embedded underline in the title indicates a mnemonic.

Properties

Adw.SpinRow:adjustment

The adjustment that holds the value of the spin row.

Available since: 1.4

Adw.SpinRow:climb-rate

The acceleration rate when you hold down a button or key.

Available since: 1.4

Adw.SpinRow:digits

The number of decimal places to display.

Available since: 1.4

Adw.SpinRow:numeric

Whether non-numeric characters should be ignored.

Available since: 1.4

Adw.SpinRow:snap-to-ticks

Whether invalid values are snapped to the nearest step increment.

Available since: 1.4

Adw.SpinRow:update-policy

The policy for updating the spin row.

Available since: 1.4

Adw.SpinRow:value

The current value.

Available since: 1.4

Adw.SpinRow:wrap

Whether the spin row should wrap upon reaching its limits.

Available since: 1.4

Properties inherited from AdwActionRow (6)
Adw.ActionRow:activatable-widget

The widget to activate when the row is activated.

Adw.ActionRow:icon-name

The icon name for this row.

Deprecated since: 1.3

Adw.ActionRow:subtitle

The subtitle for this row.

Adw.ActionRow:subtitle-lines

The number of lines at the end of which the subtitle label will be ellipsized.

Adw.ActionRow:subtitle-selectable

Whether the user can copy the subtitle from the label.

Available since: 1.3

Adw.ActionRow:title-lines

The number of lines at the end of which the title label will be ellipsized.

Properties inherited from AdwPreferencesRow (4)
Adw.PreferencesRow:title

The title of the preference represented by this row.

Adw.PreferencesRow:title-selectable

Whether the user can copy the title from the label.

Available since: 1.1

Adw.PreferencesRow:use-markup

Whether to use Pango markup for the title label.

Available since: 1.2

Adw.PreferencesRow:use-underline

Whether an embedded underline in the title indicates a mnemonic.

Signals

Adw.SpinRow::input

Emitted to convert the user’s input into a double value.

Available since: 1.4

Adw.SpinRow::output

Emitted to tweak the formatting of the value for display.

Available since: 1.4

Adw.SpinRow::wrapped

Emitted right after the spinbutton wraps.

Available since: 1.4

Signals inherited from AdwActionRow (1)
Adw.ActionRow::activated

This signal is emitted after the row has been activated.

Class structure

struct AdwSpinRowClass {
  AdwActionRowClass parent_class;
  
}
Class members
parent_class
AdwActionRowClass
  No description available.