|
Embedded SDK
Embedded SDK
|
Implementation of middle-level API to draw text. More...
#include <string.h>#include "nbgl_front.h"#include "nbgl_draw.h"#include "nbgl_fonts.h"#include "nbgl_debug.h"#include "nbgl_side.h"#include "os_pic.h"#include "os_utils.h"
Go to the source code of this file.
Classes | |
| struct | character_info_t |
| struct | rle_context_t |
Macros | |
| #define | MAX_FONT_HEIGHT 54 |
| #define | AVERAGE_CHAR_WIDTH 40 |
| #define | COMBINED_HEIGHT 9 |
| #define | MAX_RLE_COPY_PIXELS 6 |
Functions | |
| nbgl_font_id_e | nbgl_drawText (const nbgl_area_t *area, const char *text, uint16_t textLen, nbgl_font_id_e fontId, color_t fontColor) |
| This function draws the given single-line text, with the given parameters. | |
Implementation of middle-level API to draw text.
Definition in file nbgl_draw_text.c.
| #define AVERAGE_CHAR_WIDTH 40 |
Definition at line 28 of file nbgl_draw_text.c.
| #define COMBINED_HEIGHT 9 |
Definition at line 35 of file nbgl_draw_text.c.
| #define MAX_FONT_HEIGHT 54 |
Definition at line 27 of file nbgl_draw_text.c.
| #define MAX_RLE_COPY_PIXELS 6 |
Definition at line 38 of file nbgl_draw_text.c.
| nbgl_font_id_e nbgl_drawText | ( | const nbgl_area_t * | area, |
| const char * | text, | ||
| uint16_t | textLen, | ||
| nbgl_font_id_e | fontId, | ||
| color_t | fontColor | ||
| ) |
This function draws the given single-line text, with the given parameters.
| area | position, size and background color to use for text |
| text | array of characters (UTF-8) |
| textLen | number of chars to draw |
| fontId | font to be used |
| fontColor | color to use for font |
Definition at line 918 of file nbgl_draw_text.c.