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

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

C
LIB_EXPORT laResult laWidget_Translate(
    laWidget* wgt, 
    int32_t x, 
    int32_t y
);
Parameters
Parameters 
Description 
laWidget* wgt 
the widget 
int32_t x 
the amount to move in x 
int32_t y 
the amount to move in y 
Returns

laResult - the operation result

MPLAB® Harmony Graphics Suite