|
Embedded SDK
Embedded SDK
|


Go to the source code of this file.
Classes | |
| struct | nbgl_font_character_t |
| fonts nicknames to be used for various wallet size targets (non-Nano) More... | |
| struct | nbgl_font_t |
| structure defining an ASCII font More... | |
| struct | nbgl_font_unicode_character_t |
| structure defining a unicode character (except the bitmap) More... | |
| struct | nbgl_font_unicode_t |
| structure defining a unicode font More... | |
| struct | nbgl_unicode_ctx_s |
Macros | |
| #define | PIC_CHAR(x) ((const nbgl_font_character_t *) PIC(x)) |
| #define | PIC_BMP(x) ((uint8_t const *) PIC(x)) |
| #define | BAGL_ENCODING_LATIN1 0 |
| #define | BAGL_ENCODING_UTF8 1 |
| #define | BAGL_ENCODING_DEFAULT BAGL_ENCODING_UTF8 |
| #define | IS_UNICODE(__value) ((__value) > 0xF0) |
Typedefs | |
| typedef struct nbgl_unicode_ctx_s | nbgl_unicode_ctx_t |
Functions | |
| const nbgl_font_t * | nbgl_getFont (nbgl_font_id_e fontId) |
| uint16_t | nbgl_getSingleLineTextWidth (nbgl_font_id_e fontId, const char *text) |
| uint16_t | nbgl_getSingleLineTextWidthInLen (nbgl_font_id_e fontId, const char *text, uint16_t maxLen) |
| uint16_t | nbgl_getTextWidth (nbgl_font_id_e fontId, const char *text) |
| uint8_t | nbgl_getCharWidth (nbgl_font_id_e fontId, const char *text) |
| uint8_t | nbgl_getFontHeight (nbgl_font_id_e fontId) |
| uint8_t | nbgl_getFontLineHeight (nbgl_font_id_e fontId) |
| uint16_t | nbgl_getTextNbLines (const char *text) |
| uint16_t | nbgl_getTextHeight (nbgl_font_id_e fontId, const char *text) |
| uint16_t | nbgl_getTextLength (const char *text) |
| void | nbgl_getTextMaxLenAndWidth (nbgl_font_id_e fontId, const char *text, uint16_t maxWidth, uint16_t *len, uint16_t *width, bool wrapping) |
| uint16_t | nbgl_getTextNbLinesInWidth (nbgl_font_id_e fontId, const char *text, uint16_t maxWidth, bool wrapping) |
| uint16_t | nbgl_getTextHeightInWidth (nbgl_font_id_e fontId, const char *text, uint16_t maxWidth, bool wrapping) |
| bool | nbgl_getTextMaxLenAndWidthFromEnd (nbgl_font_id_e fontId, const char *text, uint16_t maxWidth, uint16_t *len, uint16_t *width) |
| bool | nbgl_getTextMaxLenInNbLines (nbgl_font_id_e fontId, const char *text, uint16_t maxWidth, uint16_t maxNbLines, uint16_t *len, bool wrapping) |
| void | nbgl_textWrapOnNbLines (nbgl_font_id_e fontId, char *text, uint16_t maxWidth, uint8_t nbLines) |
| void | nbgl_textReduceOnNbLines (nbgl_font_id_e fontId, const char *origText, uint16_t maxWidth, uint8_t nbLines, char *reducedText, uint16_t reducedTextLen) |
| uint8_t | nbgl_getTextNbPagesInWidth (nbgl_font_id_e fontId, const char *text, uint8_t nbLinesPerPage, uint16_t maxWidth) |
| uint32_t | nbgl_popUnicodeChar (const uint8_t **text, uint16_t *text_length, bool *is_unicode) |
| nbgl_unicode_ctx_t * | nbgl_getUnicodeFont (nbgl_font_id_e font_id) |
| const nbgl_font_unicode_character_t * | nbgl_getUnicodeFontCharacter (uint32_t unicode) |
| uint32_t | nbgl_getUnicodeFontCharacterByteCount (void) |
| void | nbgl_refreshUnicodeFont (const LANGUAGE_PACK *lp) |
Fonts types of the new BOLOS Graphical Library
Definition in file nbgl_fonts.h.
| #define BAGL_ENCODING_DEFAULT BAGL_ENCODING_UTF8 |
Definition at line 97 of file nbgl_fonts.h.
| #define BAGL_ENCODING_LATIN1 0 |
Definition at line 95 of file nbgl_fonts.h.
| #define BAGL_ENCODING_UTF8 1 |
Definition at line 96 of file nbgl_fonts.h.
| #define IS_UNICODE | ( | __value | ) | ((__value) > 0xF0) |
Definition at line 220 of file nbgl_fonts.h.
| #define PIC_BMP | ( | x | ) | ((uint8_t const *) PIC(x)) |
Definition at line 24 of file nbgl_fonts.h.
| #define PIC_CHAR | ( | x | ) | ((const nbgl_font_character_t *) PIC(x)) |
Definition at line 23 of file nbgl_fonts.h.
| typedef struct nbgl_unicode_ctx_s nbgl_unicode_ctx_t |
| enum nbgl_font_id_e |
Definition at line 132 of file nbgl_fonts.h.
| uint8_t nbgl_getCharWidth | ( | nbgl_font_id_e | fontId, |
| const char * | text | ||
| ) |
| const nbgl_font_t * nbgl_getFont | ( | nbgl_font_id_e | fontId | ) |
| uint8_t nbgl_getFontHeight | ( | nbgl_font_id_e | fontId | ) |
| uint8_t nbgl_getFontLineHeight | ( | nbgl_font_id_e | fontId | ) |
| uint16_t nbgl_getSingleLineTextWidth | ( | nbgl_font_id_e | fontId, |
| const char * | text | ||
| ) |
| uint16_t nbgl_getSingleLineTextWidthInLen | ( | nbgl_font_id_e | fontId, |
| const char * | text, | ||
| uint16_t | maxLen | ||
| ) |
| uint16_t nbgl_getTextHeight | ( | nbgl_font_id_e | fontId, |
| const char * | text | ||
| ) |
| uint16_t nbgl_getTextHeightInWidth | ( | nbgl_font_id_e | fontId, |
| const char * | text, | ||
| uint16_t | maxWidth, | ||
| bool | wrapping | ||
| ) |
| uint16_t nbgl_getTextLength | ( | const char * | text | ) |
| void nbgl_getTextMaxLenAndWidth | ( | nbgl_font_id_e | fontId, |
| const char * | text, | ||
| uint16_t | maxWidth, | ||
| uint16_t * | len, | ||
| uint16_t * | width, | ||
| bool | wrapping | ||
| ) |
| bool nbgl_getTextMaxLenAndWidthFromEnd | ( | nbgl_font_id_e | fontId, |
| const char * | text, | ||
| uint16_t | maxWidth, | ||
| uint16_t * | len, | ||
| uint16_t * | width | ||
| ) |
| bool nbgl_getTextMaxLenInNbLines | ( | nbgl_font_id_e | fontId, |
| const char * | text, | ||
| uint16_t | maxWidth, | ||
| uint16_t | maxNbLines, | ||
| uint16_t * | len, | ||
| bool | wrapping | ||
| ) |
| uint16_t nbgl_getTextNbLines | ( | const char * | text | ) |
| uint16_t nbgl_getTextNbLinesInWidth | ( | nbgl_font_id_e | fontId, |
| const char * | text, | ||
| uint16_t | maxWidth, | ||
| bool | wrapping | ||
| ) |
| uint8_t nbgl_getTextNbPagesInWidth | ( | nbgl_font_id_e | fontId, |
| const char * | text, | ||
| uint8_t | nbLinesPerPage, | ||
| uint16_t | maxWidth | ||
| ) |
| uint16_t nbgl_getTextWidth | ( | nbgl_font_id_e | fontId, |
| const char * | text | ||
| ) |
| nbgl_unicode_ctx_t * nbgl_getUnicodeFont | ( | nbgl_font_id_e | font_id | ) |
| const nbgl_font_unicode_character_t * nbgl_getUnicodeFontCharacter | ( | uint32_t | unicode | ) |
| uint32_t nbgl_getUnicodeFontCharacterByteCount | ( | void | ) |
| uint32_t nbgl_popUnicodeChar | ( | const uint8_t ** | text, |
| uint16_t * | text_length, | ||
| bool * | is_unicode | ||
| ) |
| void nbgl_refreshUnicodeFont | ( | const LANGUAGE_PACK * | lp | ) |
| void nbgl_textReduceOnNbLines | ( | nbgl_font_id_e | fontId, |
| const char * | origText, | ||
| uint16_t | maxWidth, | ||
| uint8_t | nbLines, | ||
| char * | reducedText, | ||
| uint16_t | reducedTextLen | ||
| ) |
| void nbgl_textWrapOnNbLines | ( | nbgl_font_id_e | fontId, |
| char * | text, | ||
| uint16_t | maxWidth, | ||
| uint8_t | nbLines | ||
| ) |