Appendix A: System Routines — Windows
1147
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
MakeScrRect
Declaration:
SCR_RECT *
MakeScrRect
(SWORD
x0
, SWORD
y0
, SWORD
x1
,
SWORD
y1
, SCR_RECT *
sr
)
Category:
Windows
Description:
Given the upper left and lower right coordinates of a screen region and an
address of a SCR_RECT, assign them to that SCR_RECT and return that
address
Inputs:
x0
,
y0
— Upper left coordinates of SCR_RECT.
x1
,
y1 —
Lower right coordinates of SCR_RECT.
sr —
Address of a SCR_RECT structure.
Outputs:
sr
Assumptions:
Unlike
MakeWinRect
, the caller passes the address of the SCR_RECT to
assign the coordinates to.
Note that WIN_RECTs and SCR_RECTs are not the same. WIN_RECTs
are base on unsigned short values (WINDOW coordinates) whereas
SCR_RECTs are base on BYTE values (screen coordinates)
Side Effects:
None
Availability:
All versions of the TI-89 and TI-92 Plus.
TI-89/TI-92 Plus
Differences:
None
See Also:
MakeWinRect
Example:
See
SetWinClip
.