cdCanvasRect
| Definition: |
include pGUI.e
cdCanvasRect(cdCanvas canvas, atom xmin, xmax, ymin, ymax) -- or -- wdCanvasRect(cdCanvas canvas, 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 cdCanvasLine primitive. When translating to Phix, the C function cdfCanvasRect() should simply have the 'f' deleted. |
| pwa/p2js: | Supported. Replaced by gCanvasRect in xpGUI. |
| Example: |
-- (from demo\pGUI\GraphR.exw)
integer {width, height} = IupGetIntInt(canvas, "DRAWSIZE")
-- surrounding box:
cdCanvasRect(cddbuffer, 5, width-10, 5, height-10)
|
| See Also: | Several of the attributes documented in cdCanvasLine() also apply to cdCanvasRect. |