Expand description
The display subsystem including window management, font rasterization, and GPU drawing.
Modulesยง
Structsยง
- The display wraps a window, font rasterizer, and GPU renderer.
- The frame timer state.
- Input method state.
- Pending renderer updates.
- Replaceable ๐Struct for safe in-place replacement.
- Terminal size info.
Enumsยง
Constantsยง
- Label for the backward terminal search bar.
- DAMAGE_
RECT_ ๐COLOR Color which is used to highlight damaged rects when debugging. - FORWARD_
SEARCH_ ๐LABEL Label for the forward terminal search bar. - SHORTENER ๐The character used to shorten the visible text like uri preview or search regex.
Functionsยง
- compute_
cell_ ๐size Calculate the cell dimensions based on font metrics. - window_
size ๐Calculate the size of the window given padding, terminal dimensions and cell size.