sindre-0.2: A programming language for simple GUIs

Portabilityportable
Stabilityprovisional

Sindre.Widgets

Description

Portable Sindre gadgets and helper functions that can be used by any backend.

Synopsis

Documentation

mkHorizontally :: MonadBackend m => Constructor mSource

A widget that arranges its children in a horizontal row.

mkVertically :: MonadBackend m => Constructor mSource

A widget that arranges its children in a vertical column.

changeFields :: MonadBackend im => [(Identifier, a -> Value)] -> (a -> ObjectM a im a) -> ObjectM a im ()Source

changeFields fs m applies m to the state of the object, replacing the state with the return value of m. Value-changed events are sent for each pair of field-name and accessor function passed in fs.