MPLAB® Harmony Graphics Suite > Graphics Library > Legato Graphics Library > Legato Interface > i) Widget Functions > leWidget_Delete Function
MPLAB® Harmony Graphics Suite
leWidget_Delete Function

Delete a widget object specified, de-allocate memory for the widget through the current active context. All child widgets are also destructed and freed.

C
LIB_EXPORT void leWidget_Delete(
    leWidget* wgt
);
Parameters
Parameters 
Description 
leWidget* wgt 
the widget to be freed 
Returns

void

Remarks

All widgets that are dynamically allocated using should be freed using this function regardless of widget type. This ensures tha all widget destructors are properly called.

MPLAB® Harmony Graphics Suite