22 #ifndef NUVIE_FONTS_FONT_H 23 #define NUVIE_FONTS_FONT_H 28 #define FONT_COLOR_U6_NORMAL 0x48 29 #define FONT_COLOR_U6_HIGHLIGHT 0x0c 30 #define FONT_COLOR_WOU_NORMAL 0 31 #define FONT_COLOR_WOU_CONVERSE_INPUT 1 33 #define FONT_COLOR_WOU_HIGHLIGHT 4 35 #define FONT_UP_ARROW_CHAR 19 36 #define FONT_DOWN_ARROW_CHAR 20 46 uint8 default_color, default_highlight_color;
55 uint8 getDefaultColor() {
58 void setDefaultColor(uint8 color) {
59 default_color = color;
61 void setDefaultHighlightColor(uint8 color) {
62 default_highlight_color = color;
66 uint16 drawString(
Screen *screen,
const char *str, uint16 x, uint16 y);
67 uint16 drawString(
Screen *screen,
const char *str, uint16 x, uint16 y, uint8 color, uint8 highlight_color);
68 uint16 drawString(
Screen *screen,
const char *str, uint16 string_len, uint16 x, uint16 y, uint8 color, uint8 highlight_color);
70 uint16 drawChar(
Screen *screen, uint8 char_num, uint16 x, uint16 y);
71 virtual uint16 drawChar(
Screen *screen, uint8 char_num, uint16 x, uint16 y,
74 uint16 drawStringToShape(
U6Shape *shp,
const char *str, uint16 x, uint16 y, uint8 color);
75 uint8 drawCharToShape(
U6Shape *shp, uint8 char_num, uint16 x, uint16 y, uint8 color);
77 virtual uint16 getCharWidth(uint8 c) = 0;
78 virtual uint16 getCharHeight() = 0;
79 uint16 getStringWidth(
const char *str);
80 virtual uint16 getStringWidth(
const char *str, uint16 string_len);
82 void setOffset(uint16 off) {
88 uint8 get_char_num(uint8 c);
Definition: atari-screen.h:60
Definition: u6_shape.h:47
Definition: detection.h:27