pub enum RowPart {
Primary,
Secondary,
Meta,
Actions,
}Expand description
The parts of a list row.
Four, taken from Balanced Breakfast, which is the only consumer that had all
of them (row-primary, row-secondary, row-meta, row-actions).
audiofiles has two and no slot structure at all, so it gains meta and
actions as real work rather than a rename; goingson moves off
task-row / task-cell.
Variants§
Primary
The thing itself. What the row is called.
Secondary
Supporting text under the primary.
Meta
A short trailing fact: a count, a size, a date.
Actions
Controls that act on this row.
Implementations§
Source§impl RowPart
impl RowPart
Sourcepub const fn revealed_on_hover(self) -> bool
pub const fn revealed_on_hover(self) -> bool
Whether the part stays hidden until the row is hovered or focused.
Behaviour of the part, not app policy: Balanced Breakfast and goingson grew the same hover-reveal on their actions independently and neither applies it to anything else.
A renderer with no hover shows it always. That is a renderer decision
and this returning true does not forbid it.