MPLAB® Harmony Graphics Suite
|
void leUtils_ArrangeRectangle( 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 |
Description |
leRect* sub |
the bounds of the subject rectangle (image) |
leRect obj |
the bounds of the object rectangle (text) |
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 |
void
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
|