Difference between revisions of "Text"

(Created page)
 
m
Line 2: Line 2:
 
Drawable text.
 
Drawable text.
 
== Constructors ==
 
== Constructors ==
{{#ask: [[Category:Functions]] [[Constructs::Text]] [[Concept:Current]]
+
{{#ask: [[Category:Functions]] [[Constructs::Text]]
 
| headers=hide
 
| headers=hide
 
| default=None.
 
| default=None.
Line 14: Line 14:
 
}}
 
}}
 
== Functions ==
 
== Functions ==
{{#ask: [[Category:Functions]] [[parent::Text||Object]] [[Concept:Current]]
+
{{#ask: [[Category:Functions]] [[parent::Text||Object]]
| headers=hide
 
| format=template
 
| template=ListingFields
 
| introtemplate=ListingIntro
 
| outrotemplate=ListingOutro
 
| ?Description
 
| ?PrettySince
 
| ?PrettyRemoved
 
}}
 
== Enums ==
 
{{#ask: [[Category:Enums]] [[parent::Text||Object]] [[Concept:Current]]
 
 
| headers=hide
 
| headers=hide
 
| format=template
 
| format=template

Revision as of 13:00, 26 July 2015

Available since LÖVE 0.10.0
This type is not supported in earlier versions.

Drawable text.

Constructors

love.graphics.newText Creates a new drawable Text object. Added since 0.10.0

Functions

Object:release Immediately destroys the object's Lua reference. Added since 11.0
Object:type Gets the type of the object as a string.
Object:typeOf Checks whether an object is of a certain type.
Text:add Adds additional colored text to the Text object at the specified position. Added since 0.10.0
Text:addf Adds additional formatted / colored text to the Text object at the specified position. Added since 0.10.0
Text:clear Clears the contents of the Text object. Added since 0.10.0
Text:getDimensions Gets the width and height of the text. Added since 0.10.1
Text:getFont Gets the Font used with the Text object. Added since 0.10.0
Text:getHeight Gets the height of the text. Added since 0.10.0
Text:getWidth Gets the width of the text. Added since 0.10.0
Text:set Replaces the contents of the Text object with a new string. Added since 0.10.0
Text:setFont Replaces the Font used with the text. Added since 0.10.0
Text:setf Replaces the contents of the Text object with a new formatted string. Added since 0.10.0

Supertypes

See Also

Other Languages