Go to the first, previous, next, last section, table of contents.

Gauge creators

* gauge :: a -> IO (Gauge a)
given the initial state, gauge returns a value of (abstract) type Gauge.
* mkGauge :: a -> (a -> Bool -> IO ()) -> IO (Gauge a)
as above, but also given a function to execute when the Gauge changes its activation status (enabled/disabled). This function can for instance be used to grey out the component represented by Gauge when it becomes disabled.

Go to the first, previous, next, last section, table of contents.