cdCanvasRect

Definition: include pGUI.e

cdCanvasRect(cdCanvas hCdCanvas, atom xmin, xmax, ymin, ymax)
Description: Draws a rectangle with no filling.
All points in the limits of interval xmin<=x<=xmax, ymin<=y<=ymax will be painted.
It is affected by line attributes and the foreground color.
If the active driver does not include this primitive, it will be simulated using the cdLine primitive.
Example:
    -- (from demo/pGUI/GraphR.exw)
    integer {width, height} = IupGetIntInt(canvas, "DRAWSIZE")
    -- surrounding box:
    cdCanvasRect(cddbuffer, 5, width-10, 5, height-10)