MPLAB® Harmony Graphics Suite > Graphics Library > Legato Graphics Library > Legato Interface > h) String Functions > leStringUtils_GetRect Function
MPLAB® Harmony Graphics Suite
leStringUtils_GetRect Function

Gets the bounding rectangle for a leChar style string

C
LIB_EXPORT leResult leStringUtils_GetRect(
    const leChar* str, 
    uint32_t size, 
    const leFont* font, 
    leRect* rect
);
Parameters
Parameters 
Description 
const leChar* str 
the source leChar string 
uint32_t size 
the size of the leChar string in code points 
const leFont* font 
the font to reference 
leRect* rect 
will contain the bounding information 
Returns

leResult - the result of the operation

MPLAB® Harmony Graphics Suite