Skip to main content

Module list

Module list 

Source
Expand description

A cursor over a list: the focus that moves up and down n rows, and the window of rows a box shows when the list is longer than the box.

The Menu keeps its focus in one; a screen with its own list (a shop, a level select, a save list) keeps one too, instead of stepping an index by hand. The cursor knows nothing of what the rows are: whether a row can take the focus is a predicate the caller passes.

Structs§

ListCursor
A focus over len rows and the window of rows shown around it.

Enums§

Scroll
How the window follows the focus.