Appendix A: System Routines — Windows
1179
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
WinLineRel
Declaration:
void
WinLineRel
(WINDOW *
w
, WIN_COORDS
x0
, WIN_COORDS
y0
)
Category(ies):
Windows
Description:
Draw a line from the current pen position using relative coordinates, then
update the pen position to those coordinates. The current pen position can
be initialized with
WinMoveTo
.
Inputs:
w
— WINDOW struct of a previously opened window.
x0, y0
— End-point of line to draw.
Outputs:
None
Assumptions:
The valid line attributes are: A_NORMAL (set), A_REVERSE (clear),
A_XOR and A_THICK1 (double thick line).
Side Effects:
None
Availability:
All versions of the TI
-
89 / TI
-
92 Plus.
TI
-
89 / TI
-
92 Plus
Differences:
None
See Also: WinAttr, WinLine, WinLineTo, WinMoveTo
Example:
/* Draw a rectangle (could use WinRect to do the same thing) */
WinMoveTo( &appW, 10, 10 );
WinLineRel( &appW, 90, 0 );
WinLineRel( &appW, 0, 50 );
WinLineRel( &appW, -90,0 );
WinLineRel( &appW, 0, -50 );