MPLAB® Harmony Graphics Suite > Graphics Library > Legato Graphics Library > Legato Interface > b) Core Functions > leAddRootWidget Function
MPLAB® Harmony Graphics Suite
leAddRootWidget Function

The library maintains a static list of widgets that are considered to be scene roots. The library treats these roots as layers and the display driver may configure itself to render these roots to different hardware layers. 

This API adds a child widget to one of the static roots.

C
LIB_EXPORT leResult leAddRootWidget(
    leWidget* wgt, 
    uint32_t layer
);
Returns

leResult

MPLAB® Harmony Graphics Suite