feat(obj): add API to set/get object ID. (#6278)

Signed-off-by: Neo Xu <neo.xu1990@gmail.com>
This commit is contained in:
Neo Xu
2024-06-13 05:39:59 +08:00
committed by GitHub
parent 864b54b851
commit cab55d8e5a
12 changed files with 163 additions and 22 deletions

View File

@@ -290,6 +290,9 @@
/* Add `id` field to `lv_obj_t` */
#define LV_USE_OBJ_ID 0
/* Automatically assign an ID when obj is created */
#define LV_OBJ_ID_AUTO_ASSIGN 1
/* Use lvgl builtin method for obj ID */
#define LV_USE_OBJ_ID_BUILTIN 0