📄️ Model-View-Presenter Design Pattern
TouchGFX user interfaces follow an architectural pattern known as Model-View-Presenter (MVP) which is a derivation of the Model-View-Controller (MVC) pattern. Both of them are widely used for building user interface applications.
📄️ The Screen Concept
In TouchGFX applications, you can have any number of "Screens" (see example below with two screens). A screen in TouchGFX is a logical grouping of UI elements (widgets) and their associated business logic. A screen consists of two classes: a View class containing all the widgets that are shown on this screen, and a Presenter containing business logic for this screen.
📄️ Code Structure
This section explains the structure of a TouchGFX project - from the code generated by TouchGFX Designer to the extending code written by the user.