Expand/Shrink

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 rectangle with straight-clipped corners, then fills them using cdCanvasSector(). You may need to ensure the interior style is set to CD_SOLID, using cdCanvasSetInteriorStyle(), before calling this routine, that is, if it does not look right.
pwa/p2js: Supported. However see the notes for cdCanvasBegin(). Replaced by gCanvasRect in xpGUI.
xpGUI: Replaced with gCanvasRect().