23#include "os_io_seph_cmd.h"
24#include "os_io_seph_ux.h"
26#include "os_helpers.h"
31#if defined(TARGET_FLEX) || defined(TARGET_APEX) || defined(TARGET_APOLLO)
32#define USE_PARTIAL_BUTTONS 1
37 PAGE_INDICATOR_INDEX = 0,
38#ifdef USE_PARTIAL_BUTTONS
44#ifndef USE_PARTIAL_BUTTONS
48 NB_SUGGESTION_CHILDREN
59#if defined(TARGET_STAX)
60#define TEXT_ENTRY_NORMAL_HEIGHT 64
61#define TEXT_ENTRY_COMPACT_HEIGHT 64
62#define BOTTOM_NORMAL_MARGIN 24
63#define BOTTOM_CONFIRM_MARGIN 24
64#define BOTTOM_COMPACT_MARGIN 24
65#define TOP_NORMAL_MARGIN 20
66#define TOP_CONFIRM_MARGIN 20
67#define TOP_COMPACT_MARGIN 20
68#define TITLE_ENTRY_MARGIN_Y 4
69#define TEXT_ENTRY_FONT LARGE_MEDIUM_1BPP_FONT
70#define TEXT_ENTRY_FONT_OBFUSCATED LARGE_OBFUSCATED_MEDIUM_1BPP_FONT
73#define NUMBER_TEXT_SPACE 8
74#define NUMBER_WIDTH 56
75#define DELETE_ICON C_Close_32px
76#elif defined(TARGET_FLEX) || defined(TARGET_APOLLO)
77#define TEXT_ENTRY_NORMAL_HEIGHT 72
78#define TEXT_ENTRY_COMPACT_HEIGHT 56
79#define BOTTOM_NORMAL_MARGIN 24
80#define BOTTOM_CONFIRM_MARGIN 24
81#define BOTTOM_COMPACT_MARGIN 12
82#define TOP_NORMAL_MARGIN 20
83#define TOP_CONFIRM_MARGIN 20
84#define TOP_COMPACT_MARGIN 12
85#define TITLE_ENTRY_MARGIN_Y 4
86#define TEXT_ENTRY_FONT LARGE_MEDIUM_1BPP_FONT
87#define TEXT_ENTRY_FONT_OBFUSCATED LARGE_OBFUSCATED_MEDIUM_1BPP_FONT
89#define NUMBER_TEXT_SPACE 8
90#define NUMBER_WIDTH 56
91#define DELETE_ICON C_Close_40px
92#elif defined(TARGET_APEX)
93#define TEXT_ENTRY_NORMAL_HEIGHT 44
94#define TEXT_ENTRY_COMPACT_HEIGHT 44
95#define BOTTOM_NORMAL_MARGIN 20
96#define BOTTOM_CONFIRM_MARGIN 16
97#define BOTTOM_COMPACT_MARGIN 8
98#define TOP_NORMAL_MARGIN 20
99#define TOP_CONFIRM_MARGIN 12
100#define TOP_COMPACT_MARGIN 8
101#define TITLE_ENTRY_MARGIN_Y 4
102#define TEXT_ENTRY_FONT LARGE_MEDIUM_1BPP_FONT
103#define TEXT_ENTRY_FONT_OBFUSCATED LARGE_OBFUSCATED_MEDIUM_1BPP_FONT
105#define NUMBER_TEXT_SPACE 4
106#define NUMBER_WIDTH 40
107#define DELETE_ICON C_Close_Tiny_24px
110#ifdef USE_PARTIAL_BUTTONS
111#if defined(TARGET_FLEX) || defined(TARGET_APOLLO)
112#define LEFT_HALF_ICON C_left_half_64px
113#define SUGGESTION_CONTAINER_HEIGHT 92
114#elif defined(TARGET_APEX)
115#define LEFT_HALF_ICON C_half_disc_left_40px_1bpp
116#define SUGGESTION_CONTAINER_HEIGHT 56
121#define SUGGESTION_BUTTONS_SIDE_MARGIN BORDER_MARGIN
122#if defined(TARGET_APEX)
123#define LINE_THICKNESS 1
124#define LINE_COLOR BLACK
126#define LINE_THICKNESS 2
127#define LINE_COLOR LIGHT_GRAY
143static char numText[5];
144static uint8_t nbActiveButtons;
145static uint8_t currentFirstButtonToken;
146#ifdef USE_PARTIAL_BUTTONS
161 if (index < (uint32_t) nbActiveButtons) {
162 button->text = choiceTexts[index];
163 button->obj.touchMask = (1 <<
TOUCHED);
165 layoutInt, (
nbgl_obj_t *) button, currentFirstButtonToken + index);
169 button->obj.touchMask = 0;
179 uint8_t currentLeftButtonIndex)
181 bool needRefresh =
false;
186 if ((eventType ==
SWIPED_LEFT) && (nbActiveButtons > NB_MAX_VISIBLE_SUGGESTION_BUTTONS)
187 && (currentLeftButtonIndex < (nbActiveButtons - NB_MAX_VISIBLE_SUGGESTION_BUTTONS))) {
190 currentLeftButtonIndex += NB_MAX_VISIBLE_SUGGESTION_BUTTONS;
192 for (i = 0; i < NB_MAX_VISIBLE_SUGGESTION_BUTTONS; i++) {
194 button = (
nbgl_button_t *) container->children[FIRST_BUTTON_INDEX + i];
195 setSuggestionButton(layoutInt, button, (uint32_t) currentLeftButtonIndex + i);
197 page = currentLeftButtonIndex / NB_MAX_VISIBLE_SUGGESTION_BUTTONS;
201 && (currentLeftButtonIndex > (NB_MAX_VISIBLE_SUGGESTION_BUTTONS - 1))) {
204 currentLeftButtonIndex -= NB_MAX_VISIBLE_SUGGESTION_BUTTONS;
205 for (i = 0; i < NB_MAX_VISIBLE_SUGGESTION_BUTTONS; i++) {
207 button = (
nbgl_button_t *) container->children[FIRST_BUTTON_INDEX + i];
208 setSuggestionButton(layoutInt, button, (uint32_t) currentLeftButtonIndex + i);
210 page = currentLeftButtonIndex / NB_MAX_VISIBLE_SUGGESTION_BUTTONS;
214 if (container->children[FIRST_BUTTON_INDEX] != NULL) {
215 container->children[FIRST_BUTTON_INDEX]->alignmentMarginX = SUGGESTION_BUTTONS_SIDE_MARGIN;
216 container->children[FIRST_BUTTON_INDEX]->alignmentMarginY = 0;
217 container->children[FIRST_BUTTON_INDEX]->alignment =
TOP_LEFT;
218 container->children[FIRST_BUTTON_INDEX]->alignTo = (
nbgl_obj_t *) container;
222 if (container->children[SECOND_BUTTON_INDEX] != NULL) {
223 container->children[SECOND_BUTTON_INDEX]->alignmentMarginX =
INTERNAL_MARGIN;
224 container->children[SECOND_BUTTON_INDEX]->alignmentMarginY = 0;
225 container->children[SECOND_BUTTON_INDEX]->alignment =
MID_RIGHT;
226 container->children[SECOND_BUTTON_INDEX]->alignTo = container->children[FIRST_BUTTON_INDEX];
228#ifndef USE_PARTIAL_BUTTONS
230 if (container->children[THIRD_BUTTON_INDEX] != NULL) {
231 container->children[THIRD_BUTTON_INDEX]->alignmentMarginX = 0;
232 container->children[THIRD_BUTTON_INDEX]->alignmentMarginY =
INTERNAL_MARGIN;
233 container->children[THIRD_BUTTON_INDEX]->alignment =
BOTTOM_MIDDLE;
234 container->children[THIRD_BUTTON_INDEX]->alignTo = container->children[FIRST_BUTTON_INDEX];
238 if (container->children[FOURTH_BUTTON_INDEX] != NULL) {
239 container->children[FOURTH_BUTTON_INDEX]->alignmentMarginX =
INTERNAL_MARGIN;
240 container->children[FOURTH_BUTTON_INDEX]->alignmentMarginY = 0;
241 container->children[FOURTH_BUTTON_INDEX]->alignment =
MID_RIGHT;
242 container->children[FOURTH_BUTTON_INDEX]->alignTo = container->children[THIRD_BUTTON_INDEX];
250 indicator->activePage = page;
252#ifdef USE_PARTIAL_BUTTONS
254 if (currentLeftButtonIndex > 0) {
255 container->children[LEFT_HALF_INDEX] = (
nbgl_obj_t *) partialButtonImages[0];
258 container->children[LEFT_HALF_INDEX] = NULL;
261 if ((nbActiveButtons > NB_MAX_VISIBLE_SUGGESTION_BUTTONS)
262 && (currentLeftButtonIndex < (nbActiveButtons - NB_MAX_VISIBLE_SUGGESTION_BUTTONS))) {
263 container->children[RIGHT_HALF_INDEX] = (
nbgl_obj_t *) partialButtonImages[1];
266 container->children[RIGHT_HALF_INDEX] = NULL;
283 if ((container->nbChildren < 2) || (container->children[1]->type !=
CONTAINER)) {
289 && (suggestionsContainer->nbChildren == NB_SUGGESTION_CHILDREN)
290 && (nbActiveButtons > NB_MAX_VISIBLE_SUGGESTION_BUTTONS)) {
292 while (i < (uint32_t) nbActiveButtons) {
293 if (((
nbgl_button_t *) suggestionsContainer->children[FIRST_BUTTON_INDEX])->text
300 if (i < (uint32_t) nbActiveButtons) {
301 if (updateSuggestionButtons(layoutInt, suggestionsContainer, eventType, i)) {
302 os_io_seph_cmd_piezo_play_tune(TUNE_TAP_CASUAL);
325 uint16_t textEntryHeight = (compactMode ? TEXT_ENTRY_COMPACT_HEIGHT : TEXT_ENTRY_NORMAL_HEIGHT);
326 bool withCross = ((text != NULL) && (strlen(text) > 0));
330 mainContainer->nbChildren = 2;
333 mainContainer->obj.alignment =
CENTER;
338 textArea->textColor =
BLACK;
339 textArea->text = title;
340 textArea->textAlignment =
CENTER;
341 textArea->fontId = SMALL_REGULAR_FONT;
342 textArea->wrapping =
true;
346 textArea->fontId, textArea->text, textArea->obj.area.width, textArea->wrapping);
347 mainContainer->children[0] = (
nbgl_obj_t *) textArea;
348 mainContainer->obj.area.height = textArea->obj.area.height + TITLE_ENTRY_MARGIN_Y;
353 container->nbChildren = 4;
361 textArea->textColor =
BLACK;
362 snprintf(numText,
sizeof(numText),
"%d.", number);
363 textArea->text = numText;
364 textArea->textAlignment =
CENTER;
365 textArea->fontId = TEXT_ENTRY_FONT;
366 textArea->obj.area.width = NUMBER_WIDTH;
370 container->children[NUMBER_INDEX] = (
nbgl_obj_t *) textArea;
375 enteredTextFont = TEXT_ENTRY_FONT_OBFUSCATED;
380 textArea->textColor =
BLACK;
381 textArea->text = text;
383 textArea->fontId = enteredTextFont;
384 textArea->obj.area.width =
AVAILABLE_WIDTH - DELETE_ICON.width - NUMBER_TEXT_SPACE;
386 textArea->obj.alignmentMarginX = NUMBER_TEXT_SPACE;
387 textArea->obj.alignTo = container->children[0];
389 textArea->obj.area.width -= textArea->obj.alignmentMarginX + NUMBER_WIDTH;
395 textArea->autoHideLongLine =
true;
397 container->children[TEXT_INDEX] = (
nbgl_obj_t *) textArea;
398 container->obj.area.height = textEntryHeight;
402 image->buffer = &DELETE_ICON;
404 image->foregroundColor = withCross ?
BLACK :
WHITE;
410 image->obj.alignTo = container->children[TEXT_INDEX];
411 image->obj.alignmentMarginX = NUMBER_TEXT_SPACE;
412 image->obj.touchMask = (1 <<
TOUCHED);
414 container->children[DELETE_INDEX] = (
nbgl_obj_t *) image;
418 line->lineColor = LINE_COLOR;
422 line->obj.area.height = LINE_THICKNESS;
424 line->thickness = LINE_THICKNESS;
426 container->children[LINE_INDEX] = (
nbgl_obj_t *) line;
429 mainContainer->children[1] = (
nbgl_obj_t *) container;
430 mainContainer->obj.area.height += container->obj.area.height;
432 return mainContainer;
436 uint8_t nbUsedButtons,
437 const char **buttonTexts,
438 int firstButtonToken,
446 || ((nbUsedButtons > 0) && (buttonTexts == NULL))) {
453 choiceTexts[i] = (i < nbUsedButtons) ? buttonTexts[i] : NULL;
456 nbActiveButtons = nbUsedButtons;
457 currentFirstButtonToken = firstButtonToken;
459 suggestionsContainer->layout =
VERTICAL;
461#ifndef USE_PARTIAL_BUTTONS
463 suggestionsContainer->obj.area.height = 2 * SMALL_BUTTON_HEIGHT +
INTERNAL_MARGIN + 28;
466 suggestionsContainer->obj.area.height = SUGGESTION_CONTAINER_HEIGHT;
468 suggestionsContainer->nbChildren = NB_SUGGESTION_CHILDREN;
469 suggestionsContainer->children
473 suggestionsContainer->obj.alignmentMarginY = BOTTOM_NORMAL_MARGIN;
478 suggestionsFontId = SMALL_OBFUSCATED_BOLD_1BPP_FONT;
482 for (
int i = 0; i < NB_MAX_VISIBLE_SUGGESTION_BUTTONS; i++) {
491 button->innerColor =
BLACK;
492 button->borderColor =
BLACK;
493 button->foregroundColor =
WHITE;
494 button->obj.area.width
496 button->obj.area.height = SMALL_BUTTON_HEIGHT;
497 button->radius = SMALL_BUTTON_RADIUS_INDEX;
498 button->fontId = suggestionsFontId;
500 setSuggestionButton(layoutInt, button, i);
502 suggestionsContainer->children[i + FIRST_BUTTON_INDEX] = (
nbgl_obj_t *) button;
508 indicator->activePage = 0;
509 indicator->nbPages = (nbActiveButtons + NB_MAX_VISIBLE_SUGGESTION_BUTTONS - 1)
510 / NB_MAX_VISIBLE_SUGGESTION_BUTTONS;
511 indicator->obj.area.width
512 = (indicator->nbPages < 3) ? STEPPER_2_PAGES_WIDTH : STEPPER_N_PAGES_WIDTH;
515 suggestionsContainer->children[PAGE_INDICATOR_INDEX] = (
nbgl_obj_t *) indicator;
516#ifdef USE_PARTIAL_BUTTONS
520 partialButtonImages[0]->buffer = &LEFT_HALF_ICON;
521 partialButtonImages[0]->obj.alignment =
TOP_LEFT;
522 partialButtonImages[0]->foregroundColor =
BLACK;
524 partialButtonImages[1]->buffer = &LEFT_HALF_ICON;
525 partialButtonImages[1]->obj.alignment =
TOP_RIGHT;
526 partialButtonImages[1]->foregroundColor =
BLACK;
528 updateSuggestionButtons(layoutInt, suggestionsContainer, 0, 0);
531 return suggestionsContainer;
553 button->obj.alignmentMarginY = compactMode ? BOTTOM_COMPACT_MARGIN : BOTTOM_CONFIRM_MARGIN;
555 button->foregroundColor =
WHITE;
557 button->innerColor =
BLACK;
558 button->borderColor =
BLACK;
559 button->obj.touchMask = (1 <<
TOUCHED);
566 button->text = PIC(text);
567 button->fontId = SMALL_BOLD_1BPP_FONT;
569 button->obj.area.height = BUTTON_DIAMETER;
570 button->radius = BUTTON_RADIUS;
592 if (layout == NULL) {
609 keyboard->obj.alignmentMarginY = 56;
613 keyboard->callback = PIC(kbdInfo->
callback);
615 keyboard->mode = kbdInfo->
mode;
616 keyboard->keyMask = kbdInfo->
keyMask;
617 keyboard->casing = kbdInfo->casing;
627 = keyboard->obj.area.height + keyboard->obj.alignmentMarginY;
666 if (layout == NULL) {
673 if ((keyboard == NULL) || (keyboard->obj.type !=
KEYBOARD)) {
675 LAYOUT_LOGGER,
"nbgl_layoutUpdateKeyboard(): keyboard not found at index %d\n", index);
678 keyboard->keyMask = keyMask;
680 keyboard->casing = casing;
695bool nbgl_layoutKeyboardNeedsRefresh(
nbgl_layout_t *layout, uint8_t index)
701 if (layout == NULL) {
708 if ((keyboard == NULL) || (keyboard->obj.type !=
KEYBOARD)) {
710 "nbgl_layoutKeyboardNeedsRefresh(): keyboard not found at index %d\n",
714 if (keyboard->needsRefresh) {
715 keyboard->needsRefresh =
false;
737 if (layout == NULL) {
741 textEntryContainer = addTextEntry(layoutInt,
749 if (textEntryContainer == NULL) {
759 = addSuggestionButtons(layoutInt,
765 if (suggestionsContainer == NULL) {
767 "nbgl_layoutAddKeyboardContent(): addSuggestionButtons failed\n");
777 "nbgl_layoutAddKeyboardContent(): cannot add callback object\n");
783 textEntryContainer->obj.alignmentMarginY
784 -= (suggestionsContainer->obj.area.height + suggestionsContainer->obj.alignmentMarginY
794 (content->
title != NULL));
795 if (button == NULL) {
797 "nbgl_layoutAddKeyboardContent(): addConfirmationButton failed\n");
802 textEntryContainer->obj.alignmentMarginY
803 -= (button->obj.area.height + button->obj.alignmentMarginY
804 + ((content->
title != NULL) ? TOP_COMPACT_MARGIN : TOP_CONFIRM_MARGIN))
807 return layoutInt->
container->obj.area.height;
829 if (layout == NULL) {
835 if ((mainContainer == NULL) || (mainContainer->obj.type !=
CONTAINER)) {
840 if ((container == NULL) || (container->obj.type !=
CONTAINER)) {
842 "nbgl_layoutUpdateKeyboardContent(): text entry container not found\n");
849 snprintf(numText,
sizeof(numText),
"%d.", content->
number);
855 textArea->text = content->
text;
856 textArea->fontId = content->
obfuscated ? TEXT_ENTRY_FONT_OBFUSCATED : TEXT_ENTRY_FONT;
860 image = (
nbgl_image_t *) container->children[DELETE_INDEX];
861 if ((textArea->text != NULL) && (strlen(textArea->text) > 0)) {
862 if (image->foregroundColor ==
WHITE) {
863 image->foregroundColor =
BLACK;
868 if (image->foregroundColor ==
BLACK) {
869 image->foregroundColor =
WHITE;
878 if ((suggestionsContainer == NULL) || (suggestionsContainer->obj.type !=
CONTAINER)) {
880 "nbgl_layoutUpdateKeyboardContent(): suggestions container not found\n");
896 for (i = 0; i < NB_MAX_VISIBLE_SUGGESTION_BUTTONS; i++) {
898 = (
nbgl_button_t *) suggestionsContainer->children[i + FIRST_BUTTON_INDEX];
899 setSuggestionButton(layoutInt, button, i);
901 suggestionsContainer->forceClean =
true;
906 indicator->nbPages = (nbActiveButtons + NB_MAX_VISIBLE_SUGGESTION_BUTTONS - 1)
907 / NB_MAX_VISIBLE_SUGGESTION_BUTTONS;
908 indicator->activePage = 0;
909 updateSuggestionButtons(layoutInt, suggestionsContainer, 0, 0);
916 if ((button == NULL) || (button->obj.type !=
BUTTON)) {
923#if NB_COLOR_BITS == 4
932 button->innerColor =
BLACK;
933 button->borderColor =
BLACK;
934 button->obj.touchMask = (1 <<
TOUCHED);
941 button->obj.touchMask = 0;
942 button->obj.touchId = 0;
#define LOG_WARN(__logger,...)
#define LOG_DEBUG(__logger,...)
Middle Level API of the new BOLOS Graphical Library.
uint16_t nbgl_getSingleLineTextWidth(nbgl_font_id_e fontId, const char *text)
uint8_t nbgl_getFontHeight(nbgl_font_id_e fontId)
uint16_t nbgl_getTextHeightInWidth(nbgl_font_id_e fontId, const char *text, uint16_t maxWidth, bool wrapping)
Font screen low-Level driver API, to draw elementary forms.
int nbgl_layoutAddKeyboard(nbgl_layout_t *layout, const nbgl_layoutKbd_t *kbdInfo)
Creates a keyboard on bottom of the screen, with the given configuration.
int nbgl_layoutUpdateKeyboard(nbgl_layout_t *layout, uint8_t index, uint32_t keyMask)
Updates an existing keyboard on bottom of the screen, with the given configuration.
#define NB_MAX_SUGGESTION_BUTTONS
void * nbgl_layout_t
type shared externally
#define NBGL_INVALID_TOKEN
Internal functions/constants of NBGL layout layer.
@ SWIPE_USAGE_SUGGESTIONS
#define KEYBOARD_FOOTER_TYPE
bool keyboardSwipeCallback(nbgl_layoutInternal_t *layoutInt, nbgl_obj_t *obj, nbgl_touchType_t eventType)
void layoutAddObject(nbgl_layoutInternal_t *layout, nbgl_obj_t *obj)
adds the given obj to the layout
void layoutUpdateCallbackObjToken(nbgl_layoutInternal_t *layout, nbgl_obj_t *obj, uint8_t token)
struct nbgl_layoutInternal_s nbgl_layoutInternal_t
Structure containing all information about the current layout.
layoutObj_t * layoutAddCallbackObj(nbgl_layoutInternal_t *layout, nbgl_obj_t *obj, uint8_t token, tune_index_e tuneId)
@ KEYBOARD_WITH_BUTTON
text entry area + confirmation button
@ KEYBOARD_WITH_SUGGESTIONS
text entry area + suggestion buttons
API to draw all basic graphic objects.
struct PACKED__ nbgl_line_s nbgl_line_t
struct to represent a vertical or horizontal line
struct PACKED__ nbgl_navigation_bar_s nbgl_page_indicator_t
struct to represent a navigation bar (PAGE_INDICATOR type) There can be up to 5 page indicators,...
struct PACKED__ nbgl_text_area_s nbgl_text_area_t
struct to represent a text area (TEXT_AREA type)
void nbgl_objDraw(nbgl_obj_t *obj)
nbgl_obj_t ** nbgl_containerPoolGet(uint8_t nbObjs, uint8_t layer)
nbgl_obj_t * nbgl_objPoolGet(nbgl_obj_type_t type, uint8_t layer)
struct PACKED__ nbgl_keyboard_s nbgl_keyboard_t
struct to represent a keyboard (KEYBOARD type)
void nbgl_refreshSpecial(nbgl_refresh_mode_t mode)
struct PACKED__ nbgl_image_s nbgl_image_t
struct to represent an image (IMAGE type)
int nbgl_objPoolGetArray(nbgl_obj_type_t type, uint8_t nbObjs, uint8_t layer, nbgl_obj_t **objArray)
struct PACKED__ nbgl_button_s nbgl_button_t
struct to represent a button (BUTTON type) that can contain a text and/or an icon
#define KEYBOARD_KEY_HEIGHT
struct PACKED__ nbgl_container_s nbgl_container_t
struct to represent a container (CONTAINER type)
@ CURRENT_INDICATOR
only current page dash is black
struct PACKED__ nbgl_obj_s nbgl_obj_t
Common structure for all graphical objects.
keyboardCase_t
Letters casing in which to open/set the keyboard.
nbgl_touchType_t
The different types of Touchscreen events.
@ VERTICAL
from top to bottom
@ HORIZONTAL
from left to right
@ IMAGE
Bitmap (y and height must be multiple of 4 on Stax).
@ BUTTON
Rounded rectangle button with icon and/or text.
@ PAGE_INDICATOR
horizontal bar to indicate position within pages
@ LINE
Vertical or Horizontal line.
@ CONTAINER
Empty container.
@ TEXT_AREA
Area to contain text line(s).
#define NO_TRANSFORMATION
@ FULL_COLOR_PARTIAL_REFRESH
to be used for small partial refresh (radio buttons, switches)
nbgl_container_t * footerContainer
container used to store footer (buttons, nav....)
uint8_t layer
layer in screen stack
nbgl_swipe_usage_t swipeUsage
nbgl_container_t * container
nbgl_layoutFooterType_t footerType
type of footer
nbgl_obj_t ** children
children for main screen
This structure contains info to build a keyboard with nbgl_layoutAddKeyboard().
bool lettersOnly
if true, only display letter keys and Backspace
keyboardCallback_t callback
function called when an active key is pressed
keyboardMode_t mode
keyboard mode to start with
This structure contains info to build a keyboard content (controls that are linked to keyboard).
uint8_t number
if numbered is true, number used to build 'number.' text
const char * text
already entered text
nbgl_layoutKeyboardContentType_t type
type of content
nbgl_layoutSuggestionButtons_t suggestionButtons
nbgl_layoutConfirmationButton_t confirmationButton
used if type is KEYBOARD_WITH_SUGGESTIONS
const char * title
centered title explaining the screen
bool numbered
if set to true, the text is preceded on the left by 'number.'