EasyManua.ls Logo

Texas Instruments TI-89

Texas Instruments TI-89
1398 pages
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...
Appendix A: System Routines — Display
437
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
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.
Inputs:
Str
Pointer to string to return the length of.
FontType
F_4x6, F_6x8, F_8x10
Outputs:
Length of string in pixels for the given font.
Assumptions:
None
Side Effects:
None
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 = 88 */
sLen = DrawStrWidth("Test string", F_6x8 ); /* sLen = 66 */
sLen = DrawStrWidth("Test string", F_4x6 ); /* sLen = 36 */

Table of Contents

Other manuals for Texas Instruments TI-89

Related product manuals