Creates a new adw.switch_row.SwitchRow.
Gets whether self is in its "on" or "off" position.
Sets whether self is in its "on" or "off" position
Activates self.
Adds a prefix widget to self.
Adds a suffix widget to self.
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.
Removes a child from self.
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.
Connect to Activated signal.
A gtk.list_box_row.ListBoxRow used to represent two states.
<picture> <source srcset="switch-row-dark.png" media="(prefers-color-scheme: dark)"> <img src="switch-row.png" alt="switch-row"> </picture>
The adw.switch_row.SwitchRow widget contains a gtk.switch_.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 gtk.switch_.Switch for details.
Example of an adw.switch_row.SwitchRow UI definition:
The property@SwitchRow:active property should be connected to in order to monitor changes to the active state.
Accessibility
adw.switch_row.SwitchRow uses the gtk.types.AccessibleRole.Switch role.