Class enchant.Label
A class for Label object.
- Defined in: enchant.js
- Extends enchant.Entity
Constructor Attributes | Constructor Name and Description |
---|---|
Field Attributes | Field Name and Description |
---|---|
Text color settings.
|
|
Font settings.
|
|
Text to be displayed.
|
|
Specifies horizontal alignment of text.
|
- Fields borrowed from class enchant.Entity:
- backgroundColor, buttonMode, buttonPressed, compositeOperation, debugColor, height, opacity, originX, originY, rotation, scaleX, scaleY, touchEnabled, visible, width
- Fields borrowed from class enchant.Node:
- age, parentNode, scene, x, y
Method Summary
- Methods borrowed from class enchant.Entity:
- disableCollection
- enableCollection
- intersect
- rotate
- scale
- within
- Methods borrowed from class enchant.Node:
- moveBy
- moveTo
- Methods borrowed from class enchant.EventTarget:
- addEventListener
- clearEventListener
- dispatchEvent
- on
- removeEventListener
Class Detail
enchant.Label()
Field Detail
{String}
color
Text color settings.
Can be set according to the format of the CSS 'color' property.
{String}
font
Font settings.
Can be set according to the format of the CSS 'font' property.
{String}
text
Text to be displayed.
{String}
textAlign
Specifies horizontal alignment of text.
Can be set according to the format of the CSS 'text-align' property.