package lambda-term

  1. Overview
  2. Docs
Terminal manipulation library for OCaml

Install

dune-project
 Dependency

Authors

Maintainers

Sources

3.3.3.tar.gz
sha512=34be68128d82b7219a963ca7442948842fc26ff9dbd3be9eb76092be3a4cf7cb19bad043fdeed7f5607178375c472dc51c6eebea82145541836e7883320d342c

doc/lambda-term/LTerm_widget/class-radiogroup/index.html

Class LTerm_widget.radiogroupSource

Radio group.

Radio group governs the set of radio objects. At each given moment of time only one of the objects in the "on" state and the rest are in the "off" state.

method on_state_change : ?switch:LTerm_widget_callbacks.switch -> ('a option -> unit) -> unit

on_state_change ?switch f calls f when the state of the group is changed.

method state : 'a option

The state of the group. Contains Some id with the id of "on" object in the group or None if no objects were added to the group yet.

method register_object : 'a radio -> unit

Adds radio object to the group

method switch_to : 'a -> unit

switch_to id switches radio group to the state Some id, calls radio.on method of the object with the given id and radio.off method of all other objects added to the group.