Module caret

Source
Expand description

Caret rectangle helpers. Caret rectangle construction from shaped run geometry.

Constants§

EDITOR_CARET_WIDTH
Minimum caret width in logical pixels.

Functions§

caret_rect_for_run
Resolves one run-local caret rectangle into screen logical pixels.
caret_rect_for_runs
Finds the containing run or returns a fallback caret after the final run.
run_height
Returns the shaped visual height clamped by the configured line height.