Get imgbtn state


In older LVGL version I was getting button state as below:
lv_btn_state_t st = lv_btn_get_state(obj);

Latest LVGL uses imgbtn instead of btn. Please correct me if I’m wrong. How to get lv_imgbtn_state_t for this widget?

  • I have the same problem. Have you solved it?


lv_imgbtn_state_t st = lv_obj_get_state(obj);

Smart! Thanks a lot