Label widgets are for displaying text.
Label widgets have the following attributes/properties:
| Property | Description | Required | In template | Default | Script |
|---|---|---|---|---|---|
| name | The name of the widget | No | N/A | _labelnn | Read-only |
| x | Horizontal screen position | Yes | No | N/A | Yes |
| y | Vertical screen position | Yes | No | N/A | Yes |
| width | Width of the widget | No | Yes | None | Yes |
| height | Height of the widget | No | Yes | None | Yes |
| template | Template to base the widget on | No | N/A | N/A | No |
| caption | Text to display in the label | No | No | None | Yes |
| visible | Whether or not the widget is shown | No | N/A | True | Yes |
| font | Truetype font file to use | Yes* | Yes | N/A | Yes |
| fontcolor | Colour to use for the text | No | Yes | #FFFFFF | Yes |
| fontsize | The size of the text (in points) | No | Yes | 16 | No |
| textalign | Text alignment | No | Yes | left | Yes |
| autosize | Autosize the widget to the text or not | No | Yes | false | Yes |
| wordwrap | Automatically wrap the text to multiple lines | No | Yes | false | Yes |
*: Must be specified either in the template or in widget itself
Label widgets have no methods or events.