gc:getStringWidth

From Inspired-Lua Wiki
Revision as of 14:00, 11 July 2011 by Adriweb (talk | contribs) (Created page with "gc:'''getStringWidth''' is a function that is part of the gc. Returns a number : the string's width in pixels. {{Since|3.0}} == Syntax == gc:'''getStringWidt...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

gc:getStringWidth is a function that is part of the gc.

Returns a number : the string's width in pixels.

This has been introduced in TI-Nspire OS 3.0 (Changes).


Syntax

gc:getStringWidth(string)

Parameter Type Description
string
string The string you want to have the width of.

Example

width = gc:getStringWidth("hello") -- width = 5

See also