<layer name="mytext" type="text" align="lefttop" x="10" y="10" html="Text...[br][b]Bold Text...[/b]" css="font-family:Arial; font-size:16px; color:#000000;" vcenter="false" padding="2" wordwrap="true" bg="true" bgcolor="0xFFFFFF" bgalpha="1.0" bgborder="0" bgroundedge="0" bgshadow="" txtshadow="" mergedalpha="true" interactivecontent="false" onautosized="" />
Attribute name | Type | Default value | |
html | String | "" | |
---|---|---|---|
|
|||
Attribute name | Type | Default value | |
css | String | "" | |
|
|||
Attribute name | Type | Default value | |
vcenter | Boolean | false | |
|
|||
Attribute name | Type | Default value | |
padding | String | "2" | |
Padding / space in pixels around the text. Can be individually for each side. There are 4 different ways to set the paddings (same as in CSS):
|
|||
Attribute name | Type | Default value | |
wordwrap | Boolean | true | |
|
|||
Attribute name | Type | Default value | |
bg | Boolean | true | |
Draw a background shape behind the text. | |||
Attribute name | Type | Default value | |
bgcolor | int | 0xFFFFFF | |
Background color of the textfield. | |||
Attribute name | Type | Default value | |
bgalpha | Number | 1.0 | |
Transparency / alpha of the background color of the textfield. | |||
Attribute name | Type | Default value | |
bgborder | String | "0" | |
Add borders around the textfield. Syntax: bgborder="width color alpha" Parameters:
| |||
Attribute name | Type | Default value | |
bgroundedge | String | "0" | |
Define rounded edges of the textfield background color shape. A value sets the edge rounding radius in pixels. Four values can be set, one for each edge (separated by space characters). They are given in the order: top-left, top-right, bottom-right, bottom-left. If bottom-left is omitted, it is the same as top-right. If bottom-right is omitted, it is the same as top-left. If top-right is omitted, it is the same as top-left. | |||
Attribute name | Type | Default value | |
bgshadow | String | "" | |
Add a shadow behind the textfield background shape. Syntax: bgshadow="xoffset yoffset blur color alpha" Parameters:
| |||
Attribute name | Type | Default value | |
txtshadow | String | "" | |
Add a shadow behind the text. Syntax: txtshadow="xoffset yoffset blur color alpha" Parameters:
| |||
Attribute name | Type | Default value | |
mergedalpha | Boolean | true | |
By default the alpha transparency of the background will be applied also to the border and shadow, but by disabling that setting, it would be possible to render the border and shadow with their own and independent alpha transparency. | |||
Attribute name (HTML5 only) | Type | Default value | |
interactivecontent | Boolean | false | |
|
Attribute name | Type | Default value | |
onautosized | String | "" | |
---|---|---|---|
|