getTokenWidth: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
(Adding description, usage)
(Modified usage)
Line 1: Line 1:
{{stub|Lacks a proper description.<br />
{{stub|Lacks a proper description.<br />
What does the result look like?<br />
Lacks examples}}
Lacks examples}}
{{MacroFunction
{{MacroFunction
Line 12: Line 11:
|usage=
|usage=
<source lang="mtmacro" line>
<source lang="mtmacro" line>
getTokenWidth()
getTokenWidth(id)
getTokenWidth(id)
</source>
</source>
Line 18: Line 18:
{{param|id|The token id of the token to check for its width, defaults to the [[Current Token]].}}{{TrustedParameter}}
{{param|id|The token id of the token to check for its width, defaults to the [[Current Token]].}}{{TrustedParameter}}


'''Result'''
'''Result'''<br />
{{note|???}}
The token's width in pixels.
|example=
|example=
This example doesn't really do anything.
This example doesn't really do anything.

Revision as of 14:25, 8 April 2013

 This article is a stub, you can help the RPTools Wiki project by contributing content to expand this article.
 This article needs: Lacks a proper description.
Lacks examples

getTokenWidth() Function

Introduced in version 1.3b89
This function retrieves the token's width.

Usage

getTokenWidth()
getTokenWidth(id)

Parameters

  • id - The token id of the token to check for its width, defaults to the Current Token.

     Note: This parameter can only be used in a Trusted Macro

Result
The token's width in pixels.

Example

This example doesn't really do anything.
[h: exampleVariable = "a,b,c"]
[r: exampleFunction(exampleVariable, reverse)]

Returns:

c,b,a

See Also