lvgl.rectangle
Display a text label.
Syntax
lvgl.rectangle([parent], {settings})
parent:rectangle({settings})
Parameters
See the API page for parameter description and common settings.
Rectangle specific settings:
Name | Type | Description | Default if not set |
---|---|---|---|
thickness | Number | Sets the width of the line used to draw the border. | 1 |
filled | Boolean | If true the rectangle is filled with the 'color' value. | false |
rounded | Number | If greater than 0 makes the corners rounded with a radius set this value. When set to a value greater than 0, must also be >= thickness. | 0 |
Return values
LVGL object
API Status
Avail | Status | Comment | |
---|---|---|---|
BW radios | |||
Color radios | active |
Change log
EdgeTX version | Change |
---|---|
2.11.0 | Introduced |