Renderer.drawErrorUnderline

void drawErrorUnderline(int x, int y, int width, int height)

Draw a squiggly line that approximately covers the given rectangle in the style of an underline used to indicate a spelling error.

The width of the underline is rounded to an integer number of up/down segments and the resulting rectangle is centered in the original rectangle.

This should be called while renderer is already active. Use [pango.renderer.Renderer.activate] to activate a renderer.

Parameters

xX coordinate of underline, in Pango units in user coordinate system
yY coordinate of underline, in Pango units in user coordinate system
widthwidth of underline, in Pango units in user coordinate system
heightheight of underline, in Pango units in user coordinate system