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