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

Traverses the children list of the specified parent widget and finds the index of the child widget specified.

C
LIB_EXPORT int32_t laWidget_GetIndexOfChild(
    laWidget* parent, 
    laWidget* child
);
Parameters
Parameters 
Description 
laWidget* parent 
the parent widget 
laWidget* child 
the child widget 
Returns

int32_t - the index of the given child pointer or -1 if not found

MPLAB® Harmony Graphics Suite