Makewinrect - Texas Instruments TI-89 Developer's Manual

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

Advertisement

1148

MakeWinRect

Declaration:
WIN_RECT * MakeWinRect (SWORD x0 , SWORD y0 , SWORD x1 ,
SWORD y1 )
Category(ies):
Windows
Description:
Given the upper left and lower right coordinates of a window return a
pointer to a static WIN_RECT structure with those coordinates.
x0 , y0 — Upper left coordinates of WIN_RECT.
Inputs:
x1 , y1 — Lower right coordinates of WIN_RECT.
Outputs:
Pointer to a statically allocated WIN_RECT (make a copy if a permanent
version is needed).
Assumptions:
The address of the WIN_RECT returned is statically allocated and so
cannot be shared.
Side Effects:
None
Availability:
All versions of the TI-89 / TI-92 Plus.
TI-89 / TI-92 Plus
Differences:
None
See Also:
MakeScrRect
Example:
See SetWinClip for an example where a copy is not made.
/* Create a WIN_RECT with MakeWinRect and save a copy in 'wr'. Without the memcpy
we would be using a statically allocated WIN_RECT that would be overwritten on
the next call to MakeWinRect.
*/
WIN_RECT wr;
memcpy(&wr, MakeWinRect(W_MIN_X,W_MIN_Y,W_MAX_X,W_MAX_Y), sizeof(WIN_RECT) );
TI-89 / TI-92 Plus Developer Guide
Appendix A: System Routines — Windows
Not for Distribution
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