 |
MPLABĀ® Harmony Graphics Suite
|
Go to the documentation of this file.
98 uint16_t dataRowWidth;
172 const uint8_t* glyphTable;
175 #if LE_STREAMING_ENABLED == 1
181 typedef void (*leFontStream_DrawCompleteFn)(uint32_t codepoint);
213 typedef struct leFontStream
218 leResult (*drawGlyph)(
const leFontGlyph* glyph, int32_t x, int32_t y, leColor clr, uint32_t alpha, leFontStream_DrawCompleteFn cb);
222 leFontStream_DrawCompleteFn cb;
226 #if LE_INCLUDE_DEFAULT_1BPP_FONT == 1
238 #if LE_INCLUDE_DEFAULT_8BPP_FONT == 1
506 #if LE_STREAMING_ENABLED == 1
531 leFontStream* leFont_GetStream(
const leFont* fnt);
Defines common math functions for general use.
Error functions, macros and definitions.
leResult
This enum represents function call results.
Definition: legato_common.h:134
LIB_EXPORT uint32_t lePercentWholeRounded(uint32_t l, uint32_t r)
Calculate percent whole rounded.
Definition: legato_math.c:204
Color definitions and functions.
This struct represents a rectangle.
Definition: legato_common.h:405
leResult leFont_DrawGlyphData(const leFont *fnt, const leFontGlyph *glyph, const uint8_t *data, int32_t x, int32_t y, leColor clr, uint32_t a)
Draws a glyph.
Definition: legato_font.c:290
@ LE_FONT_BPP_8
Definition: legato_font.h:60
leFontBPP
This enum represents a font.
Definition: legato_font.h:58
@ LE_FONT_BPP_1
Definition: legato_font.h:59
LIB_EXPORT uint32_t lePercentOf(uint32_t num, uint32_t percent)
Calculate percent of a number.
Definition: legato_math.c:218
leResult leFont_GetGlyphRect(const leFontGlyph *glyph, leRect *rect)
Get glyph rectangle.
Definition: legato_font.c:227
uint32_t location
Definition: legato_stream.h:58
struct leFont leFont
This struct represents a font object.
This struct represents a font object.
Definition: legato_font.h:136
This struct represents a rasterized font object.
Definition: legato_font.h:167
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
leBool
This enum represents booleans.
Definition: legato_common.h:157
Defines a common header for all stream operations.
This struct represents a font glyph.
Definition: legato_font.h:90
struct leFontGlyph leFontGlyph
This struct represents a font glyph.
leResult leFont_GetGlyphInfo(const leFont *fnt, uint32_t codepoint, leFontGlyph *glyph)
Get glyph info.
Definition: legato_font.c:171
leFontType
This enum represents a font type.
Definition: legato_font.h:116
LIB_EXPORT int32_t leClampi(int32_t min, int32_t max, int32_t i)
Calculates clamp of an integer.
Definition: legato_math.c:171
Rectangle functions and definitions.
void leFont_DrawGlyphRow(leFontBPP bpp, const uint8_t *data, int32_t x, int32_t y, int32_t colStart, int32_t colEnd, leColor clr, uint32_t a)
Draws a glyph from a raw data buffer.
Definition: legato_font.c:159
uint16_t leChar
This typedef represents Legato character.
Definition: legato_common.h:424
This struct represents a stream descriptor.
Definition: legato_stream.h:57
@ LE_TRUE
Definition: legato_common.h:159
Font functions and definitions.
void * address
Definition: legato_stream.h:59
void leFont_DrawUnknownGlyph(int32_t x, int32_t y, const leFontGlyph *glyph, leColor clr, uint32_t a)
Drawn unknown glyph.
Definition: legato_font.c:241
struct leRasterFont leRasterFont
This struct represents a rasterized font object.