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

Indicates if the layer at the given index is currently drawing a frame. Because frame updates can happen long after making changes to the UI state it is best to only make updates to the state of a layer tree only when the layer is not drawing. 

Requires an active context and active screen.

C
LIB_EXPORT laBool laContext_IsLayerDrawing(
    uint32_t idx
);
Parameters
Parameters 
Description 
uint32_t idx 
the index of the layer to query 
Returns
MPLAB® Harmony Graphics Suite