I’m trying to compile RT-GUI and I’ve got an erro in this line:
application = RTGUI_APPLICATION(rtgui_widget_get_toplevel(widget));
Where was defined RTGUI_APPLICATION?
I’m trying to compile RT-GUI and I’ve got an erro in this line:
application = RTGUI_APPLICATION(rtgui_widget_get_toplevel(widget));
Where was defined RTGUI_APPLICATION?
The toplevel of a widget is not the app. It is the window that containing the widget. So your code is wrong.
If you want to get the app, you could do:
And there is no need to type cast at all.
I’m trying to compile the demo_listview_icon.c from the RTGUI demo folder. I’ve downloaded RTGUI 0.8 and I believe that the demo examples are outdated. There was some headers files that was not found in the source code, for example “toplevel.h”. Do exist a new RTGUI version for download? Is correct the use of the code bellow in the demo_listview_icon.c?
application = RTGUI_APPLICATION(rtgui_widget_get_toplevel(widget));
Is there some manual in english format for RTGUI or RTThread?
Where can I configure my LCD driver and Touch driver to RTGUI use them?
Regards.