Module breadcrumb
Expand description
Breadcrumb widget — a horizontal path indicator with clickable ancestor segments and a chevron icon between them.
The trail takes the width it is given. When its segments do not fit, it
truncates the middle: keeps the first segment, puts the
Icon::MoreHorizontal glyph in place of the hidden ones, keeps the
last two. A trail of 4 or fewer segments never truncates (the truncated
form wouldn’t be shorter).
An optional root icon (Breadcrumb::root_icon) leads the first
segment (a drive, Home). A trail that doubles as an editable path
reports a click on its empty space through
Breadcrumb::on_edit_requested, so the host can swap in a field.
Structs§
- Breadcrumb
segment_rectsandvisible_originmirror the truncatedcached_visiblelist (not the originalsegments) so the click hit-test matches what’s on screen.