EasyManua.ls Logo

Texas Instruments TI-89 - Makewinrect

Texas Instruments TI-89
1398 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
1148
Appendix A: System Routines — Windows
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
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.
Inputs:
x0
,
y0
Upper left coordinates of WIN_RECT.
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) );

Table of Contents

Other manuals for Texas Instruments TI-89

Related product manuals