1170
Appendix A: System Routines — Windows
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
WinFill
Declaration:
void
WinFill
(WINDOW *
w
, const WIN_RECT *
rWin
, BYTE
Attr
)
Category(ies):
Windows
Description:
Fill a region of a window with a given attribute.
Inputs:
w
— WINDOW struct of a previously opened window.
rWin
— Window coordinates of rectangle to fill.
Attr
— Attribute to use — A_NORMAL (set), A_REVERSE (cleared),
A_XOR (all pixels are reversed).
Outputs:
None
Assumptions:
None
Side Effects:
None
Availability:
All versions of the TI
-
89 / TI
-
92 Plus.
TI
-
89 / TI
-
92 Plus
Differences:
None
See Also: WinFillTriangle
Example:
WIN_RECT wr = { 24, 16, 42, 32 };
WinFont( &appW, F_6x8 );
WinStrXY( &appW, 24, 16, "ABC" ); /* draw some text */
WinStrXY( &appW, 24, 24, "DEF" );
WinFill( &appW, &wr, A_XOR ); /* highlight text */
ngetchx(); /* wait for user */
WinFill( &appW, &wr, A_XOR ); /* un-highlight text */