Winattr - Texas Instruments TI-89 Developer's Manual

Graphing calculator
Hide thumbs Also See for TI-89:
Table of Contents

Advertisement

1152

WinAttr

Declaration:
BYTE WinAttr (WINDOW * w , BYTE Attr )
Category(ies):
Windows
Description:
Set the attribute for the next write to a window (characters or lines).
Inputs:
w
Attr — For characters (WinChar[XY], WinStr[XY]) each attribute
Outputs:
Original attribute for window.
Assumptions:
Note the application of attributes as listed above and that some window
drawing routines (WinBitmapPut, WinFill, WinRect, and WinFillTriangle)
have a separate attribute that is passed each time.
Side Effects:
Sets the default attribute for the window until changed.
Availability:
All versions of the TI-89 / TI-92 Plus.
TI-89 / TI-92 Plus
Differences
None
See Also:
WinChar[XY], WinEllipse, WinLine[Ext, To, Rel], WinPixSet,
WinStr[XY]
Example:
See WinStr for an example of using all of the character attributes.
WinAttr( &w, A_NORMAL );
WinStrXY( &w, 0, 0, "TEST" );
GKeyIn( NULL, 0 ); /* wait on user */
WinAttr( &w, A_XOR );
WinStrXY( &w, 0, 0, "TEST" );
TI-89 / TI-92 Plus Developer Guide
Appendix A: System Routines — Windows
— WINDOW struct of a previously opened window.
affects the background and foreground pixels defining the
character differently:
Attribute
A_NORMAL
A_REPLACE
A_REVERSE
A_SHADED
A_XOR
For lines, ellipses and pixels (WinLine[Ext, Rel, To],
WinEllipse, WinPixSet) there are three supported attributes:
A_NORMAL
A_REVERSE
A_XOR
WinLine, WinLineRel, and WinLineTo also support A_THICK1
which draws a double thick NORMAL line.
/* normal draw */
/* draw string */
/* XOR draw */
/* erase string just drawn */
Not for Distribution
Background
Foreground
Unchanged
ON
OFF
ON
ON
OFF
OFF
Every other pixel on
Unchanged
XOR'd with destination
Destination pixels turned ON
Destination pixels turned OFF
Source pixels XOR'd with destination pixels
Beta Version January 26, 2001

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ti-92 plusTi-92 plus

Table of Contents