MakeWinRect Function (ROM Call 0x2C)

graph.h, wingraph.h

WIN_RECT *MakeWinRect (short x0, short y0, short x1, short y1);

Builds a structure for representing rectangular area.

MakeWinRect accepts coordinates of two corners (x0y0) and (x1y1) of an rectangular area, and returns the pointer to the structure of type WIN_RECT in which these coordinates are embeded. This function may be useful in combination with a rich set of TIOS functions which expect a structure of type WIN_RECT as explicit argument, like WinOpen, WinLine, etc.

Note: This function returns a static pointer, which will be rewritten with each call. So, you must not use it inside functions which needs more than one parameter of type WIN_RECT like WinFillLines2 etc.


Used by: DrawStaticButton, assert, cmd_circle, cmd_cubicreg, cmd_expreg, cmd_line, cmd_linehorz, cmd_linevert, cmd_linreg, cmd_lnreg, cmd_logistic, cmd_medmed, cmd_newpic, cmd_onevar, cmd_powerreg, cmd_pxlhorz, cmd_pxlline, cmd_pxlvert, cmd_quadreg, cmd_quartreg, cmd_shade, cmd_showstat, cmd_twovar, EV_defaultHandler, handleVarLinkKey, GD_Circle, GD_HVLine, GD_Line, HelpKeys, dv_create_graph_titles, EV_quit, FuncLineFlt, GM_Integrate, GM_Shade, GM_TanLine, gr_stopic, GrLineFlt, GT_SaveAs