New feature LV_USE_OBJ_ID?

I noticed in Version 9 the addition of LV_USE_OBJ_ID. is it a working feature or is it a work in progress. How does one access the ID that has been created? This would be extremely helpful with handling some problems I have encountered when writing the python binding.

Hi @kdschlosser ,

You just need to enable this config

#define LV_USE_OBJ_ID        1
#define LV_OBJ_ID_AUTO_ASSIGN 1 
#define LV_USE_OBJ_ID_BUILTIN 1 

2 possible examples here:

void * id = lv_obj_get_id(my_widget);
lv_obj_t * found = lv_obj_find_by_id(parent_widget, id);

It’s important to mention the lv_obj_find_by_id is marked as deprecated in the source IDs are primarily intended for printing widget trees. For finding widgets, I recomend is to use obj_name instead.