File hp/display/TextLabel.lua
Functions
M:copyParams (params) | Set the parameter setter function. |
M:getTextSize () | Returns the text size. |
M:init (params) | The constructor. |
M:setSize (width, height) | Set the text size. |
M:setText (text) | Set the text. |
M:setTextSize (points, dpi) | Set the text size. |
M:setVisible (value) | MOAITextBox does not work for the visible, and hide in a pseudo-alpha. TODO:Will be removed in MOAI SDK V1.2. |
Tables
TextLabel | This is a class to draw the text. See MOAITextBox. Base Classes => DisplayObject, Resizable |
Functions
- M:copyParams (params)
-
Set the parameter setter function.
Parameters
-
params: Parameter is set to Object.
(params:width, height, textSize, text)
-
params: Parameter is set to Object.
- M:getTextSize ()
-
Returns the text size.
Return value:
points, dpi - M:init (params)
-
The constructor.
Parameters
-
params: (option)Parameter is set to Object.
-
params: (option)Parameter is set to Object.
- M:setSize (width, height)
-
Set the text size.
Parameters
- width:
- height:
- M:setText (text)
-
Set the text.
Parameters
- text: text.
- M:setTextSize (points, dpi)
-
Set the text size.
Parameters
- points: size.
- dpi: (deprecated)Resolution.
- M:setVisible (value)
-
MOAITextBox does not work for the visible, and hide in a pseudo-alpha.
TODO:Will be removed in MOAI SDK V1.2.Parameters
- value: