Project

General

Profile

Statistics
| Revision:

root / proj / include / font.h @ 183

History | View | Annotate | Download (561 Bytes)

1 182 up20180642
#ifndef FONT_H_INCLUDED
2
#define FONT_H_INCLUDED
3
4 183 up20180642
struct font;
5
typedef struct font font_t;
6
font_t* (font_ctor)(const char *s);
7
void    (font_dtor)(font_t *p);
8 182 up20180642
9 183 up20180642
struct text;
10
typedef struct text text_t;
11
text_t* (text_ctor)(const font_t *fnt, const char *txt);
12
void    (text_dtor)(text_t *p);
13
void (text_set_text) (text_t *p, const char *txt);
14
void (text_set_pos)  (text_t *p, int16_t x, int16_t y);
15
void (text_set_size) (text_t *p, unsigned size);
16
void (text_set_color)(text_t *p, uint32_t color);
17
void (text_draw)     (const text_t *p);
18 182 up20180642
19
#endif //FONT_H_INCLUDED