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

The function checks to see if the child and parent are valid, removes the child from its current parents children list, and assigns the child to the parent widget specified. The child is attached at the end of the list of the parent widgets children list.

C
LIB_EXPORT laResult laWidget_SetParent(
    laWidget* wgt, 
    laWidget* parent
);
Parameters
Parameters 
Description 
laWidget* wgt 
the widget 
laWidget* parent 
the desired parent widget 
Returns

laResult - the operation result

MPLAB® Harmony Graphics Suite