showErrorUnderline

fnvoid showErrorUnderline(cairo.context.Context cr, double x, double y, double width, double height)

Draw a squiggly line in the specified cairo context 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.

Parameters

cra Cairo context
xThe X coordinate of one corner of the rectangle
yThe Y coordinate of one corner of the rectangle
widthNon-negative width of the rectangle
heightNon-negative height of the rectangle