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

Gets the glyph at a point inside a leChar string bounding rectangle

C
LIB_EXPORT leResult leStringUtils_GetCharIndexAtPoint(
    const leChar* str, 
    uint32_t size, 
    const leFont* font, 
    const lePoint pt, 
    uint32_t* charIdx
);
Parameters
Parameters 
Description 
const leChar* str 
the source leChar string 
uint32_t size 
the size of the input buffer in code points 
const leFont* font 
the font to reference 
const lePoint pt 
the point to query with 
uint32_t* charIdx 
will contain the index of the char at pt 
Returns

leResult - the result of the operation

MPLAB® Harmony Graphics Suite