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

Create a new widget, allocate memory for the widget through the current active context. Returns a widget object pointer. Application is responsible for managing the widget pointer until the widget is added to a widget tree.

C
LIB_EXPORT leWidget* leWidget_New();
Returns

lawidget*

MPLAB® Harmony Graphics Suite