pub struct Item {Show 24 fields
pub id: String,
pub icon: Option<String>,
pub tone: Tone,
pub muted: bool,
pub problem: bool,
pub label: String,
pub secondary: Option<String>,
pub value: Option<String>,
pub value_plain: bool,
pub tags: Vec<Tag>,
pub badges: Vec<Badge>,
pub selected: bool,
pub kind: Option<String>,
pub hint: Option<String>,
pub menu: Vec<PanelAction>,
pub related: bool,
pub lit: bool,
pub color: Option<[u8; 3]>,
pub value_tone: Tone,
pub value_hint: Option<String>,
pub flag: Option<StatusLine>,
pub reveal: bool,
pub editing: bool,
pub field: Option<Box<Widget>>,
}Expand description
One row of a list: what an ItemList holds, or alone as a
Widget::Item.
Fields§
§id: StringNames the row in events when it stands alone; in a list the row’s place names it.
icon: Option<String>§tone: ToneThe icon’s tone; Neutral is the row’s plain one.
muted: boolOut of play: its name dim.
problem: boolA problem: its name in the danger colour.
label: String§secondary: Option<String>Dim words after the name.
value: Option<String>At the row’s end.
value_plain: boolThe value in the plain face rather than the mono one.
badges: Vec<Badge>§selected: bool§kind: Option<String>What a FilterField’s kind selector matches.
hint: Option<String>Words on hover.
The entries of its right-click menu.
Tied to what is in hand (hovered or selected elsewhere): a faint tint and a thin bar at its left edge.
lit: boolWhat is in hand itself, hovered through something else (a tag, the view): lit as under the pointer.
color: Option<[u8; 3]>The icon’s colour as sRGB, in place of the tone’s: the colour the view draws it in.
value_tone: ToneThe value’s tone; Neutral is the row’s plain one.
value_hint: Option<String>Words on hover over the value.
flag: Option<StatusLine>A word after the value in its tone, its detail on hover.
reveal: boolScrolled into view.
editing: boolIts name as a text field, focused: told as PanelEvent::ItemText
at each change and once more as it is left.
field: Option<Box<Widget>>A control at the row’s end in place of the value (a
Widget::Quantity the row’s value is typed into); its events are
its own.