MPLAB® Harmony Graphics Suite > Graphics Library > Aria Graphics Library > Aria User Interface Library Interface > b) Data Types and Constants > laDrawSurfaceWidget Structure
MPLAB® Harmony Graphics Suite
laDrawSurfaceWidget Structure

Structure: laDrawSurfaceWidget_t 

A draw surface widget is a special widget that allows an application to perform custom HAL draw calls during Aria's paint loop. To use, create and add a draw surface widget to the desired place in the widget tree. Then register for the callback through the API 'laDrawSurfaceWidget_SetDrawCallback'. This callback occurs during the paint loop. The application should then be free to adjust the HAL draw state and issue draw calls as desired. The HAL layer, buffer, or context state must not be adjusted in any way. 

It is also important to not stall for too long during the draw callback.

C
typedef struct laDrawSurfaceWidget_t {
  laWidget widget;
  laDrawSurfaceWidget_DrawCallback cb;
} laDrawSurfaceWidget;
Members
Members 
Description 
laWidget widget; 
the widget base class 
laDrawSurfaceWidget_DrawCallback cb; 
the draw callback 
Remarks

None.

MPLAB® Harmony Graphics Suite