lvgl / lv_port_linux

LVGL configured to work with a standard Linux framebuffer
MIT License
260 stars 160 forks source link

How to implement a right-angled box through lv_obj #49

Closed llechee closed 7 months ago

llechee commented 7 months ago

I need to implement a gui on my arm device LCD, but there seems to be no api to implement a rectangle, only a round box generated by lvobj_create, how do I go about it. Another question, how can I make my program smoother and silky smooth if I run it on an embedded android device Thanks to the developer

kisvegabor commented 7 months ago

I need to implement a gui on my arm device LCD, but there seems to be no api to implement a rectangle, only a round box generated by lvobj_create, how do I go about it.

To get rid of radius you can do this:

lv_obj_set_style_radius(obj, 0, LV_PART_MAIN);

Another question, how can I make my program smoother and silky smooth if I run it on an embedded android device

It requires more info, like target device, display driver, display resolution, target FPS, etc.

As it's not related to the development of LVGL, please open a topic for it in the forum and post it's link here. I'll reply in the forum.