MPLAB® Harmony Graphics Suite > Graphics Library > Aria Graphics Library > Aria User Interface Library Interface > a) Functions > laUtils_ArrangeRectangleRelative Function
MPLAB® Harmony Graphics Suite
laUtils_ArrangeRectangleRelative Function
C
void laUtils_ArrangeRectangleRelative(
    GFX_Rect* sub, 
    GFX_Rect obj, 
    GFX_Rect bounds, 
    laHAlignment hAlignment, 
    laVAlignment vAlignment, 
    laRelativePosition position, 
    uint8_t leftMargin, 
    uint8_t topMargin, 
    uint8_t rightMargin, 
    uint8_t bottomMargin, 
    uint16_t rectMargin
);
Parameters
Parameters 
Description 
GFX_Rect* sub 
the bounds of the subject rectangle (text) 
GFX_Rect obj 
the bounds of the object rectangle (image) 
GFX_Rect bounds 
the bounds of the bounding rectangle (widget) 
laHAlignment hAlignment 
the horizontal alignment of the rects 
laVAlignment vAlignment 
the vertical alignment of the rects 
laRelativePosition position 
the relative position of the rectangles 
uint8_t leftMargin 
the left margin of the bounding rectangle 
uint8_t topMargin 
the top margin of the bounding rectangle 
uint8_t rightMargin 
the right margin of the bounding rectangle 
uint8_t bottomMargin 
the bottom margin of the bounding rectangle 
uint16_t rectMargin 
the distance between the image and the text rects 
Returns

void

Remarks

The x and y position of sub will be manipulated by this function. The dimensions of the rectangle should be set before calling and should remain unchanged after execution.

MPLAB® Harmony Graphics Suite