Empty areas in rows are filled with these struts according to the row
horizontal alignment.
The default, used when no struts are given to a row,
is a single space character for both. However you can set them to glyphs
which can be sometimes useful. The basic tree layout uses struts to draw the
line joints for example.
The vertical struts are defined as a non-empty array of Text parts. They
are used to align parts vertically when building rows. The 1st vertical
strut is used for the 1st row, the 2nd for the 2nd, and so on. If there are
more rows to align than struts available, the pattern is repeated.
Only a single vertical strut is added to align a part per each row,
regardless of its width.
This is why rows can also be aligned horizontally and require besides the
vertical struts a horizontal strut: we need to fill every row where the
single strut was added, and the strut is not as wide as the row width.
The horizontal strut is defined a Text part. It will be repeated per
row to fill in areas left empty by the addition of a vertical strut.
Empty areas in rows are filled with these struts according to the row
horizontalalignment.The default, used when no struts are given to a row, is a single space character for both. However you can set them to glyphs which can be sometimes useful. The basic tree layout uses struts to draw the line joints for example.
The vertical struts are defined as a non-empty array of Text parts. They are used to align parts vertically when building rows. The 1st vertical strut is used for the 1st row, the 2nd for the 2nd, and so on. If there are more rows to align than struts available, the pattern is repeated.
Only a single vertical strut is added to align a part per each row, regardless of its width.
This is why rows can also be aligned horizontally and require besides the vertical struts a horizontal strut: we need to fill every row where the single strut was added, and the strut is not as wide as the row width.
The horizontal strut is defined a Text part. It will be repeated per row to fill in areas left empty by the addition of a vertical strut.