MPLAB® Harmony Graphics Suite > Graphics Library > Aria Graphics Library > Aria User Interface Library Interface > a) Functions > laWidget_AddChild Function
MPLAB® Harmony Graphics Suite
laWidget_AddChild 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_AddChild(
    laWidget* parent, 
    laWidget* child
);
Parameters
Parameters 
Description 
laWidget* parent 
the parent widget 
laWidget* child 
the child to add 
Returns

laResult - the operation result

MPLAB® Harmony Graphics Suite