Skip to main content

Module geometry

Module geometry 

Source
Expand description

Cell geometry: rectangles, sizes and padding.

Rectangles use signed coordinates so content scrolled above or left of its viewport can be laid out normally and clipped when drawn.

Structsยง

Padding
Space kept free inside an area, in cells.
Rect
A rectangle of cells. x and y may be negative or beyond the screen.
Size
A width and height in terminal cells.