Now in order to set image obj's property, luavgl will firstly search luavgl's custom property, and find out image does't override align(because obj does), then luavgl try lvgl's property API and find the correct one.
The issue is that lvgl's property API doesn't support two kinds of align parameter, because it's a simple int value.
Proposal
Follow strickly property value definition with lvgl.
Try to search property class by class, firstly luavgl then lvgl.
Add property type of _TYPE_ALIGN to accept a struct of parameters.
Introduce the problem
E.g. Image's base class is obj. The latter has
align
property.luavgl
makes align property easier to use by accepting two kinds of align parameter:Now in order to set image obj's property,
luavgl
will firstly search luavgl's custom property, and find out image does't overridealign
(because obj does), thenluavgl
try lvgl's property API and find the correct one.The issue is that lvgl's property API doesn't support two kinds of align parameter, because it's a simple int value.
Proposal
lvgl
.