Undefined names when converting to LVGL 8.X

While trying to migrate a working LVGL 7.x app to 8.1.0-dev I encountered a few undefined names. Do they have equivalents in 8.x? If so, what are they?

  1. Function lv_obj_set_style_local_text_color

  2. Enum LV_LABEL_PART_MAIN

  3. Function lv_obj_set_click

  4. Function lv_obj_set_event_cb

  5. Function lv_checkbox_is_checked

  6. Function lv_checkbox_set_checked

  7. Function lv_chart_set_next

  8. Function lv_chart_set_point_id

  9. Function lv_chart_clear_series

  10. Type lv_label_align_t

Thanks.

… a few more

  1. LV_LABEL_ALIGN_CENTER,

  2. LV_COLOR_RED, LV_COLOR_GREEN, LV_COLOR_GRAY

  3. lv_obj_set_state

  4. LV_BTN_PART_MAIN

  1. lv_obj_set_style_text_color
  2. Parts are now shared across objects - LV_PART_MAIN
  3. lv_obj_add_flag/lv_obj_clear_flag(obj, LV_OBJ_FLAG_CLICKABLE)
  4. lv_obj_add_event_cb
  5. lv_obj_has_state(checkbox, LV_STATE_CHECKED)
  6. lv_obj_add_state(checkbox, LV_STATE_CHECKED)
  7. lv_chart_set_next_value
  8. lv_chart_set_value_by_id
  9. Not sure - there is no obvious equivalent.
  10. lv_text_align_t
  11. LV_TEXT_ALIGN_CENTER
  12. No longer exist - use palette colors instead
  13. lv_obj_add_state or lv_obj_clear_state
  14. Parts are now shared across objects - LV_PART_MAIN
1 Like

Thanks @embeddedt!. This is very useful. Greatly appreciated.

1 Like

For the one missing:

  1. Function lv_chart_clear_series

lv_chart_set_all_value(chart, ser, LV_CHART_POINT_NONE);

1 Like

Thanks, that was the only one I couldn’t find in my migration!