MPLAB® Harmony Graphics Suite > Graphics Library > Legato Graphics Library > Legato Interface > a) Common Functions > leUtils_ArrangeRectangleRelative Function
MPLAB® Harmony Graphics Suite
leUtils_ArrangeRectangleRelative Function
C
void leUtils_ArrangeRectangleRelative(
    leRect* sub, 
    leRect obj, 
    leRect bounds, 
    leHAlignment hAlignment, 
    leVAlignment vAlignment, 
    leRelativePosition position, 
    uint8_t leftMargin, 
    uint8_t topMargin, 
    uint8_t rightMargin, 
    uint8_t bottomMargin, 
    uint16_t rectMargin
);
Parameters
Parameters 
Description 
leRect* sub 
the bounds of the subject rectangle (text) 
leRect obj 
the bounds of the object rectangle (image) 
leRect bounds 
the bounds of the bounding rectangle (widget) 
leHAlignment hAlignment 
the horizontal alignment of the rects 
leVAlignment vAlignment 
the vertical alignment of the rects 
leRelativePosition 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