Expand description
Text drawn again over the layers painted under it — a selection, a highlight, a find match — where its own colour does not read on them.
gpui shapes each colour of a line apart, so a piece is recoloured by drawing its glyphs again over the line rather than by cutting its runs.
Structs§
- Layers
- What is painted under a text, in its offsets: washes (a highlight, a find
match, a comment) and a selection, each in the shape
Sits painter draws it in. A painter drawsLayers::paintedandoverdrawsreads the same order. - Overdraw
- A piece of text that the layers under it leave below its contrast.
Functions§
- overdraws
- The pieces of
runsto draw again overlayerson the opaquepage: each on itsLayers::plate, its inktheme::ink_overthat plate from itsLayers::surface. Text that reads there already, and text under nothing, is left out. - paint
- Draws
piecesagain over what is already painted: each row of a piece covered in its plate, corners rounded byradius, then its glyphs in its ink.linesare a text’s lines laid out one under the other fromorigin, andpiecesare in the text’s offsets.