SwitchRow
A class@Gtk.ListBoxRow used to represent two states.
The AdwSwitchRow
widget contains a class@Gtk.Switch that allows the user to select between two states: "on" or "off". When activated, the row will invert its active state.
The user can control the switch by activating the row or by dragging on the switch handle.
See class@Gtk.Switch for details.
Example of an AdwSwitchRow
UI definition:
<object class="AdwSwitchRow">
<property name="title" translatable="yes">Switch Row</property>
<signal name="notify::active" handler="switch_row_notify_active_cb"/>
</object>
The property@SwitchRow:active property should be connected to in order to monitor changes to the active state.
Accessibility
AdwSwitchRow
uses the GTK_ACCESSIBLE_ROLE_SWITCH
role.
Since
1.4
Constructors
Properties
The widget to activate when the row is activated.
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.
Whether an embedded underline in the title indicates a mnemonic.
Functions
This signal is emitted after the row has been activated.
Gets the widget activated when @self is activated.
Gets the icon name for @self.
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 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 icon name for @self.
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 whether to use Pango markup for the title label.
Sets whether an embedded underline in the title indicates a mnemonic.