Closed XuNeo closed 2 months ago
Really impressive! Just one thing which bothers me: how does the user know that flex_direction is inside a flex? It makes sense, but as it doesn't mimic LVGL's C API basically everything needs to be documented.
Or am I missing something?
flex_direction is inside a flex?
It doesn't need to be.
It's one of the several optimizations made in luavgl
to group the parameters related together, like the align we mentioned before. Use the LVGL's C API style will also work.
It certainly does need documentation https://github.com/XuNeo/luavgl/blob/master/src/lvgl.lua
I see, very nice!
Add declarative example: