Package org.gnome.adw

Class SwitchRow

java.lang.Object
All Implemented Interfaces:
Proxy, Accessible, Actionable, Buildable, ConstraintTarget

@Generated("io.github.jwharm.JavaGI") public final class SwitchRow extends ActionRow implements Accessible, Actionable, Buildable, ConstraintTarget
A ListBoxRow used to represent two states.

switch-row

The AdwSwitchRow widget contains a 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 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 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.