Switch.getActive

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

class Switch
bool
getActive
()

Return Value

Type: bool

true if the #GtkSwitch is active, and false otherwise