cdCanvasRoundedBox

Definition: include pGUI.e

cdCanvasRoundedBox(cdCanvas canvas, atom xmin, xmax, ymin, ymax, width, height)
Description: Fills a rectangle according to the current interior style, but with rounded corners.
The width and height determine the elipses used for the corners.

Draws a filled polygon for the rectange with straight-clipped corners, then fills them using cdCanvasSector(). You may need to ensure the interior style is set to CD_SOLID before calling this routine (that is, if it don’t look right).