| 1534 | A list of nodes (either horizontal or vertical). |
| 1535 | """ |
| 1536 | def __init__(self, elements): |
| 1537 | Box.__init__(self, 0., 0., 0.) |
| 1538 | self.shift_amount = 0. # An arbitrary offset |
| 1539 | self.children = elements # The child nodes of this list |
| 1540 | # The following parameters are set in the vpack and hpack functions |
| 1541 | self.glue_set = 0. # The glue setting of this list |
| 1542 | self.glue_sign = 0 # 0: normal, -1: shrinking, 1: stretching |
| 1543 | self.glue_order = 0 # The order of infinity (0 - 3) for the glue |
| 1544 | |
| 1545 | def __repr__(self): |
| 1546 | return '[%s <%.02f %.02f %.02f %.02f> %s]' % ( |