lvgl.rectangle
Display a text label.
Was this helpful?
Display a text label.
lvgl.rectangle([parent], {settings})
parent:rectangle({settings})
See the API page for parameter description and common settings.
Rectangle are based on the 'lvgl.box' object so all of the settings from 'lvgl.box' also apply.
Rectangle specific settings:
thickness
Number
Sets the width of the line used to draw the border.
1
filled
Boolean or Function
If true the rectangle is filled with the 'color' value. Filled can be a function in 2.11.4 or later.
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
opacity
Number or Function
Sets the opacity. Note: range is 0 (transparent) to 255 (opaque)
255 (opaque)
When used in a stand alone tool script, the rectangle will automatically add scroll bars if any child objects are placed outside of the rectangle boundaries. For widgtes, child objects outside the rectangle bounds will be clipped.
LVGL object
BW radios
Color radios
2.11.0
Introduced
Was this helpful?
Was this helpful?