| Safe Haskell | None |
|---|---|
| Language | Haskell98 |
Graphics.UI.Grapefruit.Backend.Basic
Contents
Description
This module declares a subclass of UIBackend with methods that every reasonable UI backend
should implement.
Interface
class UIBackend uiBackend => BasicUIBackend uiBackend where Source #
A subclass of UIBackend which declares basic bricks and boxes.
Minimal complete definition
Methods
label :: Brick Widget uiBackend (X :& (Req Text ::: (SSignal `Of` String))) X Source #
A widget showing one line of text.
pushButton :: Brick Widget uiBackend (X :& (Req Text ::: (SSignal `Of` String))) (X :& (Push ::: (DSignal `Of` ()))) Source #
A push button.
lineEditor :: Brick Widget uiBackend X (X :& (Content ::: (SSignal `Of` String))) Source #
An editor for a single line of text.
box :: Orientation -> Box UICircuit Widget Widget uiBackend X X Source #
A widget which aggregates and arbitrary number of other widgets.
window :: Box UIItem Widget Window uiBackend (X :& (Req Title ::: (SSignal `Of` String))) (X :& (Closure ::: (DSignal `Of` ()))) Source #
An ordinary window.
Utilities
A caption of a widget with an optional hotkey marker.
Currently, this type is not used.
Constructors
| ColdCaption String | a caption without a hotkey |
| HotCaption String Char String | a caption consisting of a prefix string, a hotkey and a suffix string |
Field names
Constructors
| Closure |
A field name.
Typical properties:
Constructors
| Content |
Constructors
| Push |
A field name.
Typical properties:
Constructors
| Text |