Skip to content

yex.box.VtopBox

yex.box.VtopBox(*args, to=None, spread=None, glue_set=None, height=0, width=0, depth=0) #

Bases: yex.box.hvbox.VBox

Source code in yex/box/hvbox.py
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
def __init__(self, *args,
        to=None, spread=None,
        glue_set = None,
        height = 0, width = 0, depth = 0,
        ):

    if args:
        raise yex.exception.ConstructorError()

    super().__init__(
            height = height,
            width = width,
            depth = depth,
            )

    self.to = self._require_dimen(to, allow_none=False)
    self.spread = self._require_dimen(spread, allow_none=False)
    self.shifted_by = yex.value.Dimen(0)

    self.badness = 0 # positively angelic 😇
    self.decency = DECENT

    self.glue_set = glue_set
    self._ch_cache = None