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

Screens contain an internal list of layer pointers. This API assigns a layer to a screen. If the screen is currently active the library attempts to immediately enable the new layer in the HAL.

C
LIB_EXPORT laResult laScreen_SetLayer(
    laScreen* scr, 
    uint32_t idx, 
    laLayer* layer
);
Parameters
Parameters 
Description 
laScreen* scr 
the screen to modify 
uint32_t idx 
the index of the layer 
laLayer* layer 
the layer pointer to assign to the screen 
Returns

laResult - the result of the operation

MPLAB® Harmony Graphics Suite