Method

GtkSwitchget_active

Declaration [src]

gboolean
gtk_switch_get_active (
  GtkSwitch* self
)

Description [src]

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

Gets propertyGtk.Switch:active

Return value

Type: gboolean

TRUE if the GtkSwitch is active, and FALSE otherwise.