MPLAB® Harmony Graphics Suite > Graphics Library > Aria Graphics Library > Aria User Interface Library Interface > a) Functions > laDrawSurfaceWidget_SetDrawCallback Function
MPLAB® Harmony Graphics Suite
laDrawSurfaceWidget_SetDrawCallback Function

Sets the draw callback pointer for the draw surface widget. This callback will be called during Aria's paint loop and allows the application to perform HAL draw calls. The application should not adjust HAL layer, buffer, or context options in any way during this phase. 

The callback should return GFX_TRUE if it has completed drawing. Returning GFX_FALSE will indicate to the renderer that the DrawSurface requires more time to draw and will call it again during the next paint loop.

C
LIB_EXPORT laResult laDrawSurfaceWidget_SetDrawCallback(
    laDrawSurfaceWidget* sfc, 
    laDrawSurfaceWidget_DrawCallback cb
);
Parameters
Parameters 
Description 
laDrawSurfaceWidget* sfc 
the widget 
a valid callback pointer or NULL 
Returns

laResult - the result of the operation

MPLAB® Harmony Graphics Suite