Scrtowin - Texas Instruments TI-89 Developer's Manual

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

Advertisement

Appendix A: System Routines — Windows

ScrToWin

Declaration:
WIN_RECT * ScrToWin (const SCR_RECT * sr )
Category(ies):
Windows
Description:
Convert a SCR_RECT structure to a WIN_RECT (return a pointer to
statically allocated data!).
sr — SCR_RECT to convert to WIN_RECT.
Inputs:
Outputs:
Pointer to a statically allocated WIN_RECT (make a copy if a permanent
version is needed — see example below).
Assumptions:
The address of the WIN_RECT returned is statically allocated and so
cannot be shared.
Side Effects:
Note that WIN_RECTs and SCR_RECTs are not the same. WIN_RECTs
are based on unsigned short values (WINDOW coordinates) whereas
SCR_RECTs are based on BYTE values (screen coordinates).
Availability:
All versions of the TI-89 / TI-92 Plus.
TI-89 / TI-92 Plus
Differences:
None
See Also:
None
Example:
WIN_RECT wr;
WINDOW Win;
memcpy(&wr, ScrToWin(&Win->Client), sizeof(WIN_RECT) );
WinScrollV( &Win, &wr, -V_SCROLL );
TI-89 / TI-92 Plus Developer Guide
Not for Distribution
1149
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