/** * \file * * * \defgroup text Text handling on graphical displays. * \ingroup graphics * \{ * \brief Text graphic routines (interface) * * \author Bernie Innocenti * \author Stefano Fedrigo * * $WIZ$ module_name = "text" * $WIZ$ module_depends = "bitmap", "line" */ #ifndef GFX_TEXT_H #define GFX_TEXT_H #include #include /* BV() */ #include /* CPU_HARVARD */ #include /* coord_t */ #include /** * \name Style flags * \see text_style() * \{ */ #define STYLEF_BOLD BV(0) #define STYLEF_ITALIC BV(1) #define STYLEF_UNDERLINE BV(2) #define STYLEF_INVERT BV(3) #define STYLEF_EXPANDED BV(4) #define STYLEF_CONDENSED BV(5) #define STYLEF_STRIKEOUT BV(6) /* int text_puts_P(const char * PROGMEM str, struct Bitmap *bm); int text_vprintf_P(struct Bitmap *bm, const char * PROGMEM fmt, va_list ap); int text_printf_P(struct Bitmap *bm, const char * PROGMEM fmt, ...) FORMAT(__printf__, 2, 3); int text_xyvprintf_P(struct Bitmap *bm, coord_t x, coord_t y, uint16_t mode, const char *fmt, va_list ap); int text_xyprintf_P(struct Bitmap *bm, coord_t x, coord_t col, uint16_t mode, const char *fmt, ...) FORMAT(__printf__, 5, 6); int text_xprintf_P(struct Bitmap *bm, uint8_t row, uint8_t col, uint16_t mode, const char * PROGMEM fmt, ...) FORMAT(__printf__, 5, 6); int text_vwidthf_P(struct Bitmap *bm, const char * PROGMEM fmt, va_list ap); int text_widthf_P(struct Bitmap *bm, const char * PROGMEM fmt, ...); #endif /* CPU_HARVARD */ /** \} */ //defgroup text #endif /* GFX_TEXT_H */