ยค Alignment, aLeft, et al

Spacers: alignment

Types

type Alignment = Double

aLeft :: Alignment
aRight :: Alignment
aTop :: Alignment
aBottom :: Alignment
aCenter :: Alignment

Description

Values of type Alignment are used with spacers like hAlignS to specify where in the available space a box should be placed, if there is extra space. It is a real number indicating what proportion of the extra space should be placed to the left (or above) of the box. The remaining space is placed on the oppisite side.

Equalities

  aLeft = 0.0
  aRight = 1.0
  aTop = 0.0
  aBottom = 1.0
  aCenter = 0.5

leftS = hAlignS aLeft ...