AutoForms-0.5.0: GUI library based upon generic programming (SYB3)ContentsIndex
Graphics.UI.AF.General.Misc
Synopsis
enabledWhen :: AutoForm action comH builder satCxt com => comH b -> b -> Bool -> comH a -> builder (comH a)
enabledWhen2 :: AutoForm action comH builder satCxt com => comH b -> comH c -> b -> c -> Bool -> comH a -> builder (comH a)
affect :: AutoForm action comH builder satCxt com => a -> b -> comH a -> comH b -> builder ()
Documentation
enabledWhen
:: AutoForm action comH builder satCxt com
=> comH bThe dependee (source) component
-> b -> BoolFunction deciding the enabledness
-> comH aThe dependent (target) component
-> builder (comH a)
Let the enabledness of a component depend upon the value of |another component.
enabledWhen2
:: AutoForm action comH builder satCxt com
=> comH bThe first dependee (source) component
-> comH cThe second dependee (source) component
-> b -> c -> BoolFunction deciding the enabledness
-> comH aThe dependent (target) component
-> builder (comH a)
Let the enabledness of a component depend upon the value of |two other component.
affect
:: AutoForm action comH builder satCxt com
=> a -> bFunction deciding transforming source to target value
-> comH aThe dependee (source) component
-> comH bThe dependent (target) component
-> builder ()
Let the value of a component depend upon the value of |another component.
Produced by Haddock version 2.0.0.0