123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
-
-
- #ifndef __TEXT_H__
- #define __TEXT_H__
-
- #include "mcufont.h"
-
- #define TEXT_BG_NONE -1
-
- struct text_font {
- const char *fontname;
-
-
- const struct mf_font_s *font;
- };
-
- struct text_conf {
- const char *text;
- int x;
- int y;
- bool justify;
- enum mf_align_t alignment;
- int width;
- int height;
- int margin;
- int fg;
- int bg;
-
- struct text_font *font;
- };
-
- void text_prepare_font(struct text_font *tf);
- void text_draw(struct text_conf *tc);
-
- #endif
|