package toffee
Module Toffee_tree.Scrollable_overflowSource
A box's scrollable overflow area.
The rectangle a box's content reaches, relative to the box's padding-box origin (its inner border edge), with the direction of its scroll origin in each axis. In a non-reversed axis the scroll origin is at the start (left or top) and only the end edge is reachable by scrolling; in a reversed axis (a row-reverse flex container's horizontal axis, for one) the origin is at the end and the content reaches before it.
The rectangle always contains the origin. A scroll container's area is clipped to what scrolling can reach; another box's area is all of its content's overflow, which it propagates to its parent.
A scrollable overflow area.
make rect ~reversed_x ~reversed_y is the area rect, which must contain the origin, with the given scroll origin directions.
rect t is the rectangle of t.
packed t is the rectangle of t with its right and bottom edges negated in its reversed axes, the form t is stored in: equal bit for bit exactly when the areas are.
reversed_x t is true if the horizontal scroll origin of t is at the right.
reversed_y t is true if the vertical scroll origin of t is at the bottom.
equal a b is true if a and b are the same area with the same scroll origins.
compare a b orders areas by their rectangles, then their scroll origins.