Tommaso D'ippolito
Tommaso D'ippolito
> Sounds good. Let me know if you have any LVGL related questions! Yep. ! i have a little question about layouts ! Can the function defined in lv_flex/lv_grid be...
Great ! 👍
@kisvegabor You can view some example on how to use Flex on lv_cpp_example in the repository. https://github.com/lvgl/lv_binding_cpp/blob/master/lv_cpp_examples/FlexEx.cpp This use also the standard "new" for create objects. :+1:
Hi, I already use a python script to automatically generate cpp API from C code ! It's in a early stage but it works ...
As I said the script is in a really early stage, so at the moment i don't like to make it public ! In the near future I will clean...
@amirgon If you want to see the script you can find at https://github.com/fstuff-dev/lv_binding_cpp_generator/tree/earlystage . As the link says is "earlystage" so don't use it. Some Class in /core folder are...
I think that is the best choice !
> A few questions: > > - In an event callback, how do you get the CPP object from the event? > > You can get `lv_obj` by calling `lv_event_get_target`,...
> Do you save the CPP object into `user_data` automatically? The matching between `LvObj` and `user_data` is done automatically inside derivated object constructor. For example: ```cpp LvBtn::LvBtn(LvObj* Parent) : LvObj(Parent)...
Yes I can do it ! I've removed the example some time ago but i will upload and I'll give some other examples !