Drawstrwidth - Texas Instruments TI-89 Developer's Manual

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

Advertisement

Appendix A: System Routines — Display

DrawStrWidth

Declaration:
WORD DrawStrWidth (const char * Str , BYTE FontType )
Category(ies):
Display
Description:
Return the length of the given string in pixels. For the 8x10 and 6x8 fonts
this is just 8/6 times the length of the string; but the 4x6 font is proportional.
Str
Inputs:
FontType — F_4x6, F_6x8, F_8x10
Outputs:
Length of string in pixels for the given font.
Assumptions:
None
None
Side Effects:
Availability:
All versions of the TI-89 / TI-92 Plus.
TI-89 / TI-92 Plus
Differences:
None
See Also:
DrawStrWidthP
Example:
WORD sLen;
sLen = DrawStrWidth("Test string", F_8x10 );
sLen = DrawStrWidth("Test string", F_6x8 );
sLen = DrawStrWidth("Test string", F_4x6 );
TI-89 / TI-92 Plus Developer Guide
— Pointer to string to return the length of.
/* sLen = 88 */
/* sLen = 66 */
/* sLen = 36 */
Not for Distribution
437
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