A window’s frame and fill. Icons, number and title are dropped as the rect shrinks.
A caller that joins things to the frame lines draws them between the two render steps.
A framed list with a shadow and a scrollbar when the items exceed the box, rendered in
the area dropdown_area gives. The caller owns the [ListState]: the window stays put
while the selection moves inside it and scrolls by the minimum past its edges.
The text of a field and the cursor as a character index. Rendering scrolls the
Viewport state the least that keeps the character under the cursor between the arrow
cells, as TextView does; the terminal cursor itself is placed by the
caller at InputLine::cursor.
The drop-down under a menu title: a single-line box with a shadow, one item a row, the
selected one in the menu-selected roles and the marked ones with a bullet. Rendered
with the title’s area as its anchor.
Hotkey and label pairs on one row: F1 Help M-x Exit, the key in the status-hotkey
role. An item that does not fit the width is left out whole; later, shorter ones still show.
The lines of a text and the cursor in them as (line, character index). Rendering scrolls
the Viewport state the least that keeps the character under the cursor in view, then
draws through it; the terminal cursor itself is placed by the caller at TextView::cursor.
One window of the desktop. The place is where it sits when not zoomed, in screen-absolute
cells (TV stores it relative to the desktop): the app draws the desktop at a fixed offset,
and place_of limits it against whatever area it is handed.
Copies to screen the cells of window, drawn at its full size, that visible shows. A wide
glyph whose second cell the right edge cuts off is blanked, and so is one on the screen that
ends under the left edge, or the diff would skip the window’s first cell.
The box of rows list rows with its border, anchor wide and left-aligned with it: on the
row below anchor, or above it when there is no room below and more above, cut to fit the
side chosen. Moved left to stay inside screen.
Draws a scrollbar on the right border of area in the TurboVision symbols and the scrollbar
roles, for rows rows with view of them shown from row top; nothing when they all fit.