Wrappers.Switchtype t = [ `switch | `widget | `initially_unowned | `object_ ] Gobject.objval new_ : unit -> tCreate a new Switch
val set_state : t -> bool -> unitSets the underlying state of the `GtkSwitch`.
This function is typically called from a signal@Gtk.Switch::state-set signal handler in order to set up delayed state changes.
See signal@Gtk.Switch::state-set for details.
val set_active : t -> bool -> unitChanges the state of @self to the desired one.
val get_state : t -> boolGets the underlying state of the `GtkSwitch`.
val get_active : t -> boolGets whether the `GtkSwitch` is in its βonβ or βoffβ state.
val on_activate :
?after:bool ->
t ->
callback:(unit -> unit) ->
Gobject.Signal.handler_idval on_state_set :
?after:bool ->
t ->
callback:(state:bool -> bool) ->
Gobject.Signal.handler_id