TextDestroyTextItem: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
[[ | __NOTOC__ | ||
{{Server function}} | |||
This function destroys a [[textitem]] object. | |||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
void textDestroyTextItem ( textitem | void textDestroyTextItem ( textitem theTextitem ) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
===Required Arguments=== | ===Required Arguments=== | ||
*''' | *'''theTextitem:''' The text item you wish to destroy. | ||
==Example== | ==Example== | ||
This example | This example creates then destroys a [[textitem]]. | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
-- | -- Create a new text item | ||
text = textCreateTextItem ( "Hello, world!" ) | |||
-- | -- Destroy it | ||
textDestroyTextItem ( text ) | |||
</syntaxhighlight> | </syntaxhighlight> | ||
==See Also== | ==See Also== | ||
{{ | {{Text_functions}} |
Latest revision as of 18:14, 15 August 2007
This function destroys a textitem object.
Syntax
void textDestroyTextItem ( textitem theTextitem )
Required Arguments
- theTextitem: The text item you wish to destroy.
Example
This example creates then destroys a textitem.
-- Create a new text item text = textCreateTextItem ( "Hello, world!" ) -- Destroy it textDestroyTextItem ( text )
See Also
- textCreateDisplay
- textCreateTextItem
- textDestroyDisplay
- textDestroyTextItem
- textDisplayAddObserver
- textDisplayAddText
- textDisplayGetObservers
- textDisplayIsObserver
- textDisplayRemoveObserver
- textDisplayRemoveText
- textItemGetColor
- textItemGetPosition
- textItemGetPriority
- textItemGetScale
- textItemGetText
- textItemSetColor
- textItemSetPosition
- textItemSetPriority
- textItemSetScale
- textItemSetText