¤ toggleF

Buttons

Types

toggleF :: Bool -> [(ModState, KeySym)] -> F c b -> F (Bool  c) (Bool  b)

Synopsis

toggleF inside keys lblF

Description

toggleF creates a toggle button. An argument fudgets determines the label placed to the right of the button.

Input

Left on switches on or off the button. Right x passes x to the label fudget.

Output

Left on when the button is toggled. Right y when the label fudget outputs y.

Arguments

inside :: Bool
True to put the label inside the button.
keys :: [(ModState, KeySym)]
keyboard shortcuts.
lblF :: F c b
label fudget.

Example

 toggleF False [] nullF

See Also

toggleButtonF, pushButtonF, buttonGroupF, buttonF.