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.