A widget is a displayed object on a device screen. This is the base widget, it is derived as GraphicWidget with graphical capabilities and GraphicWidget is derived as TextWidget that adds textual capabilities.
More...
A widget is a displayed object on a device screen. This is the base widget, it is derived as GraphicWidget with graphical capabilities and GraphicWidget is derived as TextWidget that adds textual capabilities.
USAGE: A widget is defined by a frame with width and height in pixel, and line and column of text if derived as TextualWidget. This frame is located within the display device screen at an anchor point (x,y).
The widget frame inside the display screen frame
- Note
- IMPORTANT NOTICE 1: The widget is only drawn if something has changed in the Model it represents. This allows to save drawing processing time. However there is a strong limitation : only the widget buffer is transfered to the device GDDRAM, based of its specific addressing scheme. As a result, if the widget is located such that the buffer is written across device pages, the contents of the overwritten pages is lost. This is why the widget height and the widget_anchor_y must be multiple of 8. Doing so the widget buffer bytes do not ovewrite pixel outside the widget border.