Expand description
Shared caret geometry for text fields and document renderers.
Enums§
- Caret
Height - How tall the app-wide block caret stands.
- Caret
Shape - The app-wide caret shape. Terminal cursors follow their terminal instead.
- Inactive
Caret - What the app-wide block caret paints as while its window is inactive.
Functions§
- character_
advance - The next grapheme’s shaped advance, or no character at a hard/soft line end.
- cover
- The colour
paint_covereddraws the glyph atoffsetofrunsin, under a solidcaretover the opaquepage:theme::ink_overthe caret, from theLayers::surfacethere, as a selected glyph is. - paint_
covered - Paints the glyphs
layoutshaped forrangeagain, incolor: what a solid block covers, painted over the block and the line.atis the top left of the first one’s slot, on a rowline_heighttall. - recoloured
runscut atrange’s edges, the pieces inside it incolor.- zero_
width - The shaped width of
0infont: a wide caret’s width where no character follows it.