EU1KY AA
font.h
Go to the documentation of this file.
1 /*
2  * (c) Yury Kuchura
3  * kuchura@gmail.com
4  */
5 
6 #ifndef FONT_H_
7 #define FONT_H_
8 
9 #include <stdint.h>
10 #include "LCD.h"
11 
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15 
16 typedef enum
17 {
19 } FONTS;
20 
21 
22 int FONT_Write(FONTS fnt, LCDColor fg, LCDColor bg, uint16_t x, uint16_t y, const char* pStr);
23 int FONT_Write_N(FONTS fnt, LCDColor fg, LCDColor bg, uint16_t x, uint16_t y, const char* pStr, int nChars);
24 int FONT_Print(FONTS fnt, LCDColor fg, LCDColor bg, uint16_t x, uint16_t y, const char *fmt, ...);
25 void FONT_SetAttributes(FONTS fnt, LCDColor fg, LCDColor bg);
26 int FONT_Printf(uint16_t x, uint16_t y, const char *fmt, ...);
27 int FONT_GetStrPixelWidth(FONTS fnt, const char* pStr);
28 void FONT_ClearLine(FONTS fnt, LCDColor bg, uint16_t y0);
29 void FONT_ClearHalfLine(FONTS fnt, LCDColor bg, uint16_t y0);// WK
30 uint16_t FONT_GetHeight(FONTS fnt);
31 
32 #ifdef __cplusplus
33 }
34 #endif
35 
36 #endif //FONT_H_
37 
int FONT_Write(FONTS fnt, LCDColor fg, LCDColor bg, uint16_t x, uint16_t y, const char *pStr)
Definition: font.c:91
uint32_t LCDColor
LCD color type.
Definition: LCD.h:26
int FONT_GetStrPixelWidth(FONTS fnt, const char *pStr)
Definition: font.c:199
int FONT_Printf(uint16_t x, uint16_t y, const char *fmt,...)
Definition: font.c:176
Definition: font.h:18
void FONT_SetAttributes(FONTS fnt, LCDColor fg, LCDColor bg)
Definition: font.c:167
int FONT_Print(FONTS fnt, LCDColor fg, LCDColor bg, uint16_t x, uint16_t y, const char *fmt,...)
Definition: font.c:188
void FONT_ClearLine(FONTS fnt, LCDColor bg, uint16_t y0)
Definition: font.c:96
Definition: font.h:18
int FONT_Write_N(FONTS fnt, LCDColor fg, LCDColor bg, uint16_t x, uint16_t y, const char *pStr, int nChars)
Definition: font.c:111
Definition: font.h:18
uint16_t FONT_GetHeight(FONTS fnt)
Definition: font.c:74
FONTS
Definition: font.h:16
void FONT_ClearHalfLine(FONTS fnt, LCDColor bg, uint16_t y0)
Definition: font.c:103
Definition: font.h:18