Class enchant.Label
Erstellt ein Label Objekt.
- Defined in: enchant.js
- Extends enchant.Entity
Constructor Attributes | Constructor Name and Description |
---|---|
Field Attributes | Field Name and Description |
---|---|
Text Farbe.
|
|
Text Eigenschaften.
|
|
Darzustellender Text.
|
|
Spezifiziert die horizontale Ausrichtung des Textes.
|
- 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 Farbe.
Kann im gleichen Format wie die CSS 'color' Eigenschaft angegeben werden.
{String}
font
Text Eigenschaften.
Kann im gleichen Format wie die CSS 'font' Eigenschaft angegeben werden.
{String}
text
Darzustellender Text.
{String}
textAlign
Spezifiziert die horizontale Ausrichtung des Textes.
Kann im gleichen Format wie die CSS 'text-align' Eigenschaft angegeben werden.