Method: rich.layout.RowSplitter.divide
Calls: 2, Exceptions: 0, Paths: 1Back
Path 1: 2 calls (1.0)
list (2)
Region (2)
tuple (4)
1def divide(
2 self, children: Sequence["Layout"], region: Region
3 ) -> Iterable[Tuple["Layout", Region]]:
4 x, y, width, height = region
5 render_widths = ratio_resolve(width, children)
6 offset = 0
7 _Region = Region
8 for child, child_width in zip(children, render_widths):
9 yield child, _Region(x + offset, y, child_width, height)
10 offset += child_width