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

Gets the glyph at a point inside a C-style string bounding rectangle

C
LIB_EXPORT leResult leStringUtils_GetCharIndexAtPointCStr(
    const char* str, 
    const leFont* font, 
    const lePoint pt, 
    uint32_t* charIdx
);
Parameters
Parameters 
Description 
const char* str 
the source C string 
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