It derives from <AdwActionRow>.
A <GtkListBoxRow> used to represent two
states.
The <AdwSwitchRow> widget contains a
<GtkSwitch> 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 <GtkSwitch> 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 SwitchRow:active property should be connected to in order to
monitor changes to the active state.
<AdwSwitchRow> uses the
Gtk.AccessibleRole.switch role.
Whether the switch row is in the "on" or "off" position.
Its value is a boolean.
Set it with (set! (switch-row:active self) value).
Gets whether self is in its "on" or "off" position.
Passed: a <AdwSwitchRow>.
a switch row
Returned: a boolean.
whether self is active or not
Creates a new <AdwSwitchRow>.
Returned: a <GtkWidget>.
the newly created <AdwSwitchRow>
Sets whether self is in its "on" or "off" position
Passed: a <AdwSwitchRow>.
a switch row
Passed: a boolean.
whether self should be active