After solving the basic OS interface, consider the GUI Design.
The common GUI architecture in the embedded industry is as follows:
IDE (fourth-generation scripting language): converts users' designs into third-generation languages supported by RTE (C or C ++)
RTE: responsible for supporting the target OS platform (such as QT, GDI +)
IDE design involves compilation language design, which is not discussed here.
The Design of RTE is discussed below.
RTE is generally divided into two parts.
Part of the HMI design is closely related to the GUI. Divided into three parts by subject
1> Canvas design (mainly responsible for drawing Complex Images)
2> event processing (user operation events (keyboard, touch, etc.), system events, framework events designed for View and Module separation, and user-defined events)
3> separation of data update and synchronization from GUI (Signal-Slot, SetData, etc)
The second part is Window management (Graphic Lib)
It is mainly responsible for creating windows and ing between Windwo and hardware OSD.
For example, a set-top box usually uses three layers of OSD hardware, which is responsible for the synthesis of three OSD layers.
Next, we will discuss the design of the second part.