 |
MPLABĀ® Harmony Graphics Suite
|
Go to the documentation of this file.
31 #ifndef LE_STRING_RENDERER_H
32 #define LE_STRING_RENDERER_H
@ LE_HALIGN_RIGHT
Definition: legato_common.h:209
leResult
This enum represents function call results.
Definition: legato_common.h:134
This struct represents a rectangle.
Definition: legato_common.h:405
LIB_EXPORT leResult leStringUtils_GetRect(const leChar *str, uint32_t size, const leFont *font, leRect *rect)
Get bounding rectangle for a leChar style string.
Definition: legato_stringutils.c:86
leResult leStringRenderer_DrawString(leStringRenderRequest *req)
Draw an leString.
Definition: legato_string_renderer.c:114
leHAlignment
This enum represents the horizontal alignment mode of objects.
Definition: legato_common.h:206
LIB_EXPORT leResult leStringUtils_GetLineRectCStr(const char *str, const leFont *font, uint32_t line, leRect *rect)
Gets the line bounding rectangle for a C-style string.
Definition: legato_stringutils.c:347
uint32_t location
Definition: legato_stream.h:58
struct leStringRenderRequest leStringRenderRequest
This struct represents a string render request.
@ LE_HALIGN_CENTER
Definition: legato_common.h:208
LIB_EXPORT uint32_t leStringUtils_GetLineCountCStr(const char *str)
Get line count for a C-style string.
Definition: legato_stringutils.c:194
This struct represents a font object.
Definition: legato_font.h:136
This struct represents a rasterized font object.
Definition: legato_font.h:167
This struct represents a string.
Definition: legato_string.h:108
leResult leFont_DrawGlyph(const leFont *fnt, const leFontGlyph *glyph, int32_t x, int32_t y, leColor clr, uint32_t a)
Draws a glyph.
Definition: legato_font.c:349
#define LE_STREAM_LOCATION_ID_INTERNAL
leEventResult
Definition: legato_stream.h:67
This struct represents a string render request.
Definition: legato_string_renderer.h:59
leResult leStringRenderer_DrawUString(leUStringRenderRequest *req)
Draw C-Style string.
Definition: legato_string_renderer.c:206
This struct represents a font glyph.
Definition: legato_font.h:90
LIB_EXPORT uint32_t leStringUtils_GetLineCount(const leChar *str, uint32_t size)
Get line count for a leChar style string.
Definition: legato_stringutils.c:172
Fixed string functions and definitions.
leResult leFont_GetGlyphInfo(const leFont *fnt, uint32_t codepoint, leFontGlyph *glyph)
Get glyph info.
Definition: legato_font.c:171
This struct represents a c-style string render request.
Definition: legato_string_renderer.h:128
String utility functions and definitions.
This struct represents a lechar string render request.
Definition: legato_string_renderer.h:93
LIB_EXPORT leResult leStringUtils_GetLineIndices(const leChar *str, uint32_t size, uint32_t line, uint32_t *start, uint32_t *end)
Get line indices for a leChar style string.
Definition: legato_stringutils.c:221
struct leCStringRenderRequest leCStringRenderRequest
This struct represents a c-style string render request.
LIB_EXPORT leResult leStringUtils_GetLineIndicesCStr(const char *str, uint32_t line, uint32_t *start, uint32_t *end)
Gets the line indices for a C-style string.
Definition: legato_stringutils.c:262
LIB_EXPORT leResult leStringUtils_GetLineRect(const leChar *str, uint32_t size, const leFont *font, uint32_t line, leRect *rect)
Gets the line bounding rectangle for a leChar style string.
Definition: legato_stringutils.c:305
uint16_t leChar
This typedef represents Legato character.
Definition: legato_common.h:424
leResult leStringRenderer_DrawCString(leCStringRenderRequest *req)
Draw leChar string.
Definition: legato_string_renderer.c:297
struct leUStringRenderRequest leUStringRenderRequest
This struct represents a lechar string render request.
const leStringVTable * fn
Definition: legato_string.h:109
LIB_EXPORT leResult leStringUtils_GetRectCStr(const char *str, const leFont *font, leRect *rect)
Gets the bounding rectangle for a C-style string.
Definition: legato_stringutils.c:128