Skip to main content

Module glyph

Module glyph 

Source
Expand description

The glyph look of the name boxes: the typing box and the letter grid, each a double-bordered box with its title in the top border and the name so far with a cursor. Everything about the look lives here; nothing here decides what a box shows. Another look is another paint_* of the same views.

Constants§

TYPING_HEIGHT
Height of the typing box: the border, the name, the hint and a blank row around each.

Functions§

grid_height
The height of the grid’s box for grid: the border, the name, and two rows per row of cells.
paint_grid
The name grid’s box from rect’s top left, rect.w wide and as tall as grid_height: the name so far with a cursor, then the grid, the focused cell as a lit bar.
paint_typing
The typing box at rect (TYPING_HEIGHT tall): the name so far with a cursor, and the hint to type.