Skip to main content

act_note

Function act_note 

Source
pub fn act_note(style: &PieceStyle, act: &Act<'_>) -> Option<Line<'static>>
Expand description

The muted line a control’s Act::hint draws as, or None where it has none.

A terminal has no pointer, so the hover the other two renderers spend a hint on is not available and is not the thing anyway: what the description says is that the sentence is true, never that it is hidden. A row under the control is this renderer’s answer, and it is the same muted row field gives a field’s note, so the two read alike wherever they land.

Its own function rather than extra lines out of act, because a control is one Line everywhere it is drawn and a caller laying out a run needs to know it is placing two things. Added 0.40.0 with Act::hint; quasi-tui built this line itself before that.