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

Changes the widget position to the new defined x and y coordinates. Moving widgets can be expensive as it needs to repaint multiple areas of its parent widget.

C
LIB_EXPORT laResult laWidget_SetPosition(
    laWidget* wgt, 
    int32_t x, 
    int32_t y
);
Parameters
Parameters 
Description 
laWidget* wgt 
the widget 
int32_t x 
the new x coordinate 
int32_t y 
the new y coordinate 
Returns

laResult - the operation result

MPLAB® Harmony Graphics Suite