 |
MPLABĀ® Harmony Graphics Suite
|
Go to the documentation of this file.
30 #ifndef LEGATO_STRINGTABLE_H
31 #define LEGATO_STRINGTABLE_H
37 #define LE_STRING_ARRAY_SIZE 4
38 #define LE_STRING_ENTRY_SIZE 2
39 #define LE_STRING_MAX_CHAR_WIDTH 6
48 LE_STRING_ENCODING_ASCII,
49 LE_STRING_ENCODING_UTF8,
50 LE_STRING_ENCODING_UTF16
82 uint8_t* stringTableData;
103 uint32_t stringIndex;
153 uint32_t languageID);
190 uint32_t languageID);
@ LE_HALIGN_RIGHT
Definition: legato_common.h:209
Definition: legato_stringtable.c:38
leResult
This enum represents function call results.
Definition: legato_common.h:134
This struct represents a rectangle.
Definition: legato_common.h:405
LIB_EXPORT uint32_t leStringTable_GetStringOffset(const leStringTable *table, uint32_t stringID, uint32_t languageID)
Get offset of a string in table by string and language ID.
Definition: legato_stringtable.c:73
leHAlignment
This enum represents the horizontal alignment mode of objects.
Definition: legato_common.h:206
Definition: legato_stringtable.c:44
String table functions and definitions.
LIB_EXPORT leResult leStringTable_StringLookup(const leStringTable *table, leStringInfo *info)
Get info for a string table string.
Definition: legato_stringtable.c:184
@ LE_HALIGN_CENTER
Definition: legato_common.h:208
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
leStringEncodingMode
This enum represents string encoding modes.
Definition: legato_stringtable.h:47
leBool
This enum represents booleans.
Definition: legato_common.h:157
This struct represents a string render request.
Definition: legato_string_renderer.h:59
This struct represents a font glyph.
Definition: legato_font.h:90
LIB_EXPORT leFont * leStringTable_GetStringFont(const leStringTable *table, uint32_t stringID, uint32_t languageID)
Get font for a string table string.
Definition: legato_stringtable.c:110
struct leStringTable leStringTable
This struct represents string a string table.
LIB_EXPORT uint32_t leStringTable_GetStringCount(const leStringTable *table)
Gets the number of strings in a string table.
Definition: legato_stringtable.c:49
LIB_EXPORT uint32_t leGetStringLanguage()
Get language index.
Definition: legato_state.c:449
leResult leFont_GetGlyphInfo(const leFont *fnt, uint32_t codepoint, leFontGlyph *glyph)
Get glyph info.
Definition: legato_font.c:171
struct leStringInfo leStringInfo
This struct represents string a string table entry.
String utility functions and definitions.
LIB_EXPORT uint32_t leStringTable_GetActiveStringOffset(const leStringTable *table, uint32_t stringID)
Get offset of a string in table using active global language.
Definition: legato_stringtable.c:104
LIB_EXPORT leResult leStringTable_GetStringLength(const leStringTable *table, leStringInfo *info)
Get length of a string in the string table in codepoints.
Definition: legato_stringtable.c:214
This struct represents a stream descriptor.
Definition: legato_stream.h:57
@ LE_TRUE
Definition: legato_common.h:159
Font functions and definitions.
Common macros and definitions used by Legato.
const leStringVTable * fn
Definition: legato_string.h:109
This struct represents string a string table.
Definition: legato_stringtable.h:80
LIB_EXPORT uint32_t leStringTable_GetLanguageCount(const leStringTable *table)
Get number of languages in a string table.
Definition: legato_stringtable.c:61
This struct represents string a string table entry.
Definition: legato_stringtable.h:102