| WinRect | Function (ROM Call 0x21)

wingraph.h

void WinRect (WINDOW *w, const WIN_RECT *rect, short Attr);

Draws a rectangle to a window.

WinRect draws a rectangle with (x0, y0) and (x1, y1) as corners to the window pointed to by w, where coordinates (x0, y0) and (x1, y1) are given in a WIN_RECT structure rect. All coordinates are relative to the topleft corner of the window. The rectangle will be clipped at the boundaries of the clipping area of the window. The interior of the rectangle remains intact (no fill). The border lines of the rectangle will be drawn using the attribute Attr. See WinLineTo for a description of supported line atributes. In addition, the attribute may be ORed with one or more following constants (which are defined in enum BoxAttrs:

B_NORMAL | Draw a normal rectangle
B_DOUBLE | Draw a double thick rectangle
B_ROUNDED | Draw a rectangle with rounded corners
B_CUT | Draw a rectangle with the upper corners cut (like in toolboxes)

Note: I cannot conclude which is the difference if you OR the attribute with B_NORMAL or if you do not so. Maybe I am stupid.

Uses: RectWinToWin, WinToScr, DrawClipRect, PortRestore, ScrRectOverlap, ROM Call 0x413
Used by: DrawStaticButton, cmd_cubicreg, cmd_expreg, cmd_linreg, cmd_lnreg, cmd_logistic, cmd_medmed, cmd_onevar, cmd_powerreg, cmd_quadreg, cmd_quartreg, cmd_twovar, Dialog, EV_defaultHandler, GD_Select, GZ_Box, HelpKeys, EV_quit