Module display

Source
Expand description

The display subsystem including window management, font rasterization, and GPU drawing.

Modulesยง

bell ๐Ÿ”’
color
content
cursor
Convert a cursor into an iterator of rects.
damage ๐Ÿ”’
hint
meter ๐Ÿ”’
Rendering time meter.
window

Structsยง

Display
The display wraps a window, font rasterizer, and GPU renderer.
DisplayUpdate
FrameTimer
The frame timer state.
Ime
Input method state.
Preedit
RendererUpdate
Pending renderer updates.
Replaceable ๐Ÿ”’
Struct for safe in-place replacement.
SizeInfo
Terminal size info.

Enumsยง

Error

Constantsยง

BACKWARD_SEARCH_LABEL ๐Ÿ”’
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.