Winpixset - Texas Instruments TI-89 Developer's Manual

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

Advertisement

1186

WinPixSet

Declaration:
void WinPixSet (WINDOW * w , WIN_COORDS x0 , WIN_COORDS y0 )
Category(ies):
Windows
Description:
Set a pixel value depending on the current window attribute.
Inputs:
w
x0, y0 — WINDOW coordinates of pixel to set.
Outputs:
None
Assumptions:
Current attribute (set by WinAttr) is A_NORMAL (set), A_REVERSE
(clear), or A_XOR.
None
Side Effects:
All versions of the TI-89 / TI-92 Plus.
Availability:
TI-89 / TI-92 Plus
Differences:
None
See Also:
WinAttr, WinPixGet
Example:
/* Given a pointer to a WIN_RECT (wRect) this piece of code will draw a rectangle
with the corners turned off. */
WinRect( &appW, wRect, B_NORMAL | A_NORMAL );
WinAttr( &appW, A_REVERSE );
WinPixSet( &appW, wRect->x0, wRect->y0 );
WinPixSet( &appW, wRect->x1, wRect->y0 );
WinPixSet( &appW, wRect->x1, wRect->y1 );
WinPixSet( &appW, wRect->x0, wRect->y1 );
TI-89 / TI-92 Plus Developer Guide
Appendix A: System Routines — Windows
— WINDOW struct of a previously opened window.
/* so pixels cleared */
/* turn off corner pixels */
Not for Distribution
/* draw rectangle */
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