graphics.hlp (
Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
_rectangle Functions
◄Summary► ◄Example► ◄Up► ◄Contents► ◄Index► ◄Back►
────────────────────────────────────────────────────────────────────────────
The _rectangle functions draw a rectangle with the current line
style.
The _rectangle function uses the view coordinate system. The
view-coordinate points (<x1>, <y1>) and (<x2>, <y2>) are the
diagonally opposed corners of the rectangle.
The _rectangle_w routine uses the window coordinate system. The
window-coordinate points (<wx1>, <wy1>) and (<wx2>, <wy2>) are the
diagonally opposed corners of the rectangle.
The _rectangle_wxy routine uses the window coordinate system. The
window-coordinate points (<pwxy1>) and (<pwxy2>) are the
diagonally opposed corners of the rectangle. The coordinates for
the _rectangle_wxy routine are given in terms of a _wxycoord
structure (defined in GRAPH.H).
The _rectangle_w and _rectangle_wxy routines are implemented as
macros.
The <control> parameter can be one of the following manifest
constants: _GBORDER or _GFILLINTERIOR.
If the current fill mask is NULL, no mask is used. Instead, the
rectangle is filled with the current color. If you try to fill the
rectangle with the _floodfill function, the rectangle must be
bordered by a solid line-style pattern.
Return Value
The function returns a nonzero value if the rectangle is drawn
successfully; otherwise, it returns 0.
-♦-