Appendix A: System Routines — Windows
1165
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
WinClr
Declaration:
void
WinClr
(WINDOW *
w
)
Category(ies):
Windows
Description:
Clear the client area of the current window (using the current clip region).
Reset the current x, y position to the home of the client region. The current
background attribute is used to fill the client area.
Inputs:
w
— WINDOW struct of a previously opened window.
Outputs:
None
Assumptions:
The default background attribute is A_REVERSE (clear). A_NORMAL
produces a solid background. A_XOR keeps what is on the screen but flips
every bit.
Side Effects:
None
Availability:
All versions of the TI
-
89 / TI
-
92 Plus.
TI
-
89 / TI
-
92 Plus
Differences:
None
See Also: WinBackground
. See
WinFill
to clear specific regions.
Example:
WinStr( &w, "TEST STRING" );
WinBackground( &w, A_XOR );
WinClr( &w ); /* reverse entire window (including existing images) */
ngetchx(); /* wait for user */
WinBackground( &w, A_REVERSE ); /* back to white background (default) */
WinClr( &w ); /* normal clear window */