marginHVAlignF :: Distance -> Alignment -> Alignment -> F a b -> F a b alignF :: Size -> Size -> Alignment -> Alignment -> F a b -> F a b noStretchF :: Bool -> Bool -> F a b -> F a b
marginHVAlignF margin halign valign fudget
marginHVAlignF
(or alignF
) it will only become as big as it
needs to be. If the fudget is stretchable in a direction, it will still
fill up the available space in that direction.
noStretchF
allows you to change the stretching behaviour of a fudget.
The two arguments indicate whether the size should be fixed horizontally and
vertically, respectively.
margin :: Distance
halign :: Alignment
aLeft
, aCenter
or aRight
).
valign :: Alignment
aTop
, aCenter
or aBottom
).
fudget :: F a b
marginHVAlignF 10 aRight aCenter (buttonF "Hi!") >+<startupF ["Good Morning!"] stringF