X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fgfx%2Ftext.h;h=44be12d762a4327113b4e232cccc90734d882dee;hb=6e0b59dab1ec92a0911eb5e8ebde34d96bb4739d;hp=59f65ea03e92fcc49d4918bc8795710e7452aff1;hpb=791e167e053bdd9250d34a9a5ccae6ccde4d6679;p=bertos.git diff --git a/bertos/gfx/text.h b/bertos/gfx/text.h index 59f65ea0..44be12d7 100644 --- a/bertos/gfx/text.h +++ b/bertos/gfx/text.h @@ -27,15 +27,18 @@ * the GNU General Public License. * * Copyright 2003, 2004, 2005 Develer S.r.l. (http://www.develer.com/) - * Copyright 1999 Bernardo Innocenti + * Copyright 1999 Bernie Innocenti * * --> * * \brief Text graphic routines (interface) * - * \author Bernardo Innocenti + * \author Bernie Innocenti * \author Stefano Fedrigo - * \version $Id$ + * + * $WIZ$ module_name = "text" + * $WIZ$ module_harvard = "pgm_memory" + * $WIZ$ module_depends = "bitmap", "line" */ #ifndef GFX_TEXT_H @@ -106,10 +109,12 @@ int text_widthf(struct Bitmap *bm, const char * fmt, ...) FORMAT(__printf__, 2, /* Text formatting functions for program-memory strings (mware/text_format.c) */ #if CPU_HARVARD -#include +#include 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, ...);