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.