46 #ifndef GFX_TEXT_H_INCLUDED 47 #define GFX_TEXT_H_INCLUDED 54 #ifdef CONFIG_HAVE_HUGEMEM 66 #ifdef CONFIG_HAVE_HUGEMEM 95 TEXT_POS_RIGHT = (1 << 5),
118 #ifdef CONFIG_HAVE_HUGEMEM 119 hugemem_ptr_t hugemem;
Commonly used includes, types and macros.
void gfx_get_string_bounding_box(const char *str, const struct font *font, gfx_coord_t *width, gfx_coord_t *height)
Computes the bounding box of a string.
void gfx_draw_progmem_string_aligned(char PROGMEM_PTR_T str, gfx_coord_t x, gfx_coord_t y, const struct font *font, const gfx_color_t bg_color, const gfx_color_t text_color, enum gfx_text_position text_pos, enum gfx_text_alignment text_align)
Draws an aligned string located in program memory to the display.
void gfx_get_progmem_string_bounding_box(char PROGMEM_PTR_T str, const struct font *font, gfx_coord_t *width, gfx_coord_t *height)
Computes the bounding box of a string located in program memory.
void gfx_draw_string_aligned(const char *str, gfx_coord_t x, gfx_coord_t y, const struct font *font, const gfx_color_t bg_color, const gfx_color_t text_color, enum gfx_text_position text_pos, enum gfx_text_alignment text_align)
Draws an aligned string to the display.
font_data_type
Valid storage locations for font data.
ili9341_coord_t gfx_coord_t
Data type representing a coordinate on the screen.
void gfx_draw_progmem_string(char PROGMEM_PTR_T str, gfx_coord_t x, gfx_coord_t y, const struct font *font, const gfx_color_t bg_color, const gfx_color_t text_color)
Draws a string located in program memory to the display.
void gfx_draw_char(const char c, const gfx_coord_t x, const gfx_coord_t y, const struct font *font, const gfx_color_t bg_color, const gfx_color_t text_color)
Draws a character to the display.
void gfx_draw_string(const char *str, const gfx_coord_t x, const gfx_coord_t y, const struct font *font, const gfx_color_t bg_color, const gfx_color_t text_color)
Draws a string to the display.
ili9341_color_t gfx_color_t
Data type for color values native to the display.
uint8_t PROGMEM_PTR_T progmem