I’m new to LVGL, and have a couple questions related to custom drawing in v8.
- If I wanted to round only the bottom two corners of a button (see example below) would this be possible using a style, or do I need to override the drawing function associated with the object?
lv_obj_set_style_radiusdoesn’t seem to have the flexibility for this.
- I read this blog post: Extend the functionality of objects in LittlevGL | LVGL’s Blog, however the APIs in LVGL v8 have changed, and replacing the object’s design function via
lv_obj_set_design_funcis no longer possible, because these functions do not exist. What is the proper way to override drawing of an object in LVGL v8? I’m guessing the answer involves Hook Drawing but it’s not clear to me how to replace the drawing that would occur in the LV_EVENT_DRAW_MAIN event.