Embedded SDK
Embedded SDK
|
Middle Level API of the new BOLOS Graphical Library. More...
Go to the source code of this file.
Macros | |
#define | QR_V4_NB_PIX_SIZE 33 |
#define | QR_V10_NB_PIX_SIZE 57 |
#define | QR_MAX_PIX_SIZE QR_V10_NB_PIX_SIZE |
Functions | |
void | nbgl_drawIcon (nbgl_area_t *area, nbgl_transformation_t transformation, nbgl_color_map_t color_map, const nbgl_icon_details_t *icon) |
Helper function to render an icon directly from its nbgl_icon_details_t structure. More... | |
void | nbgl_drawRoundedRect (const nbgl_area_t *area, nbgl_radius_t radius, color_t innerColor) |
This functions draws a rounded corners rectangle (without border), with the given parameters. More... | |
void | nbgl_drawRoundedBorderedRect (const nbgl_area_t *area, nbgl_radius_t radius, uint8_t stroke, color_t innerColor, color_t borderColor) |
This functions draws a rounded corners rectangle with a border, with the given parameters. More... | |
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. More... | |
void | nbgl_drawQrCode (const nbgl_area_t *area, nbgl_qrcode_version_t version, const char *text, color_t backgroundColor) |
Draws the given text into a V10 QR code (QR code version is fixed using qrcodegen_VERSION_MIN/qrcodegen_VERSION_MAX in qrcodegen.h) More... | |
Middle Level API of the new BOLOS Graphical Library.
Definition in file nbgl_draw.h.
#define QR_MAX_PIX_SIZE QR_V10_NB_PIX_SIZE |
Definition at line 25 of file nbgl_draw.h.
#define QR_V10_NB_PIX_SIZE 57 |
Definition at line 24 of file nbgl_draw.h.
#define QR_V4_NB_PIX_SIZE 33 |
Definition at line 23 of file nbgl_draw.h.
void nbgl_drawIcon | ( | nbgl_area_t * | area, |
nbgl_transformation_t | transformation, | ||
nbgl_color_map_t | color_map, | ||
const nbgl_icon_details_t * | icon | ||
) |
Helper function to render an icon directly from its nbgl_icon_details_t
structure.
The icon is rendered whether it's an image file or not. No transformation is applied to the icon.
area | Area of drawing |
transformation | Transformation to apply to this icon (only available for raw image, not image file) |
color_map | Color map applied to icon |
icon | Icon details structure to draw |
Definition at line 489 of file nbgl_draw.c.
void nbgl_drawQrCode | ( | const nbgl_area_t * | area, |
nbgl_qrcode_version_t | version, | ||
const char * | text, | ||
color_t | foregroundColor | ||
) |
Draws the given text into a V10 QR code (QR code version is fixed using qrcodegen_VERSION_MIN/qrcodegen_VERSION_MAX in qrcodegen.h)
area | position, size and color of the QR code to draw |
version | version of QR Code |
text | text to encode |
foregroundColor | color to be applied to the 1's in QR code |
Definition at line 764 of file nbgl_draw.c.
void nbgl_drawRoundedBorderedRect | ( | const nbgl_area_t * | area, |
nbgl_radius_t | radiusIndex, | ||
uint8_t | stroke, | ||
color_t | innerColor, | ||
color_t | borderColor | ||
) |
This functions draws a rounded corners rectangle with a border, with the given parameters.
area | position, size and background color (outside of the rectangle) to use for the rectangle |
radiusIndex | radius size |
stroke | thickness of border (fixed to 2) |
innerColor | color to use for inside the rectangle |
borderColor | color to use for the border |
Definition at line 331 of file nbgl_draw.c.
void nbgl_drawRoundedRect | ( | const nbgl_area_t * | area, |
nbgl_radius_t | radiusIndex, | ||
color_t | innerColor | ||
) |
This functions draws a rounded corners rectangle (without border), with the given parameters.
area | position, size and background color (outside of the rectangle) to use for the rectangle |
radiusIndex | radius size |
innerColor | color to use for inside the rectangle |
Definition at line 237 of file nbgl_draw.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 538 of file nbgl_draw.c.