pub enum RowLayout {
Compact,
CompactAlignedLabels,
AlignedIcons,
AlignedIconsAndLabels,
}Expand description
How rows in the tree are laid out.
Each row in the tree is made up of three elements. A closer, an icon and a label. The layout of these elements is controlled by this value.
Variants§
Compact
No icons are displayed. Directories only show the closer and the label. Leaves only show the label and allocate no additional space for a closer. Labels between leaves and directories do not align.
CompactAlignedLabels
The labels of leaves and directories are aligned. Icons are displayed for leaves only.
AlignedIcons
The icons of leaves and directories are aligned. If a leaf or directory does not show an icon, the label will fill the space. Labels between leaves and directories can be misaligned.
AlignedIconsAndLabels
The labels of leaves and directories are aligned. If a leaf or directory does not show an icon, the label will not fill the space.