lvgl.getScrollPos¶
lvgl.getScrollPos(parent)
Get the current scroll position of a container object.
Parameters¶
| Name | Req | Type | Description |
|---|---|---|---|
parent | yes | object | LVGL container object (e.g. box, rectangle, or page) |
Returns¶
| Name | Type | Description |
|---|---|---|
number, | unknown | number the X and Y scroll position of the container's top-left corner |
Availability¶
- Since:
2.11.2 - Radio support:
color-lcd
Notes¶
- Only applies to container objects such as
box,rectangle, andpage.
Source¶
radio/src/lua/api_colorlcd_lvgl.cpp