EasyManuals Logo

Texas Instruments TI-89 Developer's Guide

Texas Instruments TI-89
1398 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #1220 background imageLoading...
Page #1220 background image
1178
Appendix A: System Routines — Windows
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
WinLineExt
(continued)
Example:
/* This example draws to a window which is clipped. Because of the clipping, the
first part of the first line drawn is clipped (not drawn). After the clipping
region for the window is restored back to the full window; the second line drawn
now draws the entire line. If WinLine was used in these cases the scan-line
conversion used to draw the lines would cause the second line drawn to be slightly
different than the first line and would leave some pixels still turned on. WinLine
clips to the clipping region and then draws the line inside the clipping region.
WinLineExt actually starts drawing at the line end-points and only draws those
pixels inside the clipping region which is why it is slower.
*/
WINDOW w1;
WIN_RECT wr;
SCR_RECT sr, oldClip;
if (WinOpen( &w1, MakeWinRect(0,0,100,80), 0 )) {
WinActivate( &w1 );
WinClr( &w1 );
oldClip = w1.Clip;
SetWinClip( &w1, MakeScrRect(20,20, 80,60,&sr) );
wr = *MakeWinRect(40,0,60,60);
WinLineExt( &w1, &wr ); /* this will be clipped */
GKeyIn( NULL, 0 );
w1.Clip = oldClip;
WinAttr( &w1, A_XOR );
WinLineExt( &w1, &wr ); /* draw whole line */
GKeyIn( NULL, 0 );
WinClose( &w1 );
}

Table of Contents

Other manuals for Texas Instruments TI-89

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Texas Instruments TI-89 and is the answer not in the manual?

Texas Instruments TI-89 Specifications

General IconGeneral
Display size (HxV)100 x 160 mm
Memory type639K FLASH ROM, 188K bytes RAM
Compatible operating systemsOperating System 2.09
Battery typeAAA

Related product manuals