Skip to main content

Module grid

Module grid 

Source
Expand description

The grid container.

Structsยง

Cells
Iterator over all cells with their (x, y) coordinates.
CellsMut
Mutable iterator over all cells with their (x, y) coordinates.
Grid
The main grid container for the terminal.
LayerBuf ๐Ÿ”’
A single layer in the grid: a flat 2D buffer of one tile per cell.
Size
Size of the grid.

Functionsยง

from_grixy_pos ๐Ÿ”’
to_grixy_pos ๐Ÿ”’

Type Aliasesยง

Pos
Pos in the grid, in (x = column, y = row) order.
Rect
Rectangle in the grid.