Method

GtkSwitchget_active

since: 3.0

Declaration [src]

gboolean
gtk_switch_get_active (
  GtkSwitch* sw
)

Description [src]

Gets whether the GtkSwitch is in its “on” or “off” state.

Available since: 3.0

Gets propertyGtk.Switch:active

Return value

Type: gboolean

TRUE if the GtkSwitch is active, and FALSE otherwise.