1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
-
-
- #ifndef __TEXT_H__
- #define __TEXT_H__
-
- #include "mcufont.h"
-
- 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;
-
- struct text_font *font;
- };
-
- void text_prepare_font(struct text_font *tf);
- void text_draw(struct text_conf *tc);
-
- #endif
|