|
Embedded SDK
Embedded SDK
|
Implementation of predefined layouts management for Nano target, for Keyboard. More...
#include <string.h>#include <stdlib.h>#include "nbgl_debug.h"#include "nbgl_layout_internal_nanos.h"#include "glyphs.h"#include "os_pic.h"#include "os_helpers.h"#include "lcx_rng.h"
Go to the source code of this file.
Functions | |
| 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. | |
| int | nbgl_layoutAddEnteredTextAdvanced (nbgl_layout_t *layout, const char *text, bool lettersOnly, bool obfuscated) |
| Adds a "text entry" area under the previously entered object. The max number of really displayable characters is 8, even if there are 9 placeholders (_) If longer than 8 chars, the first ones are replaced by a '..' The 9th placeholder is never filled. | |
| int | nbgl_layoutAddEnteredText (nbgl_layout_t *layout, const char *text, bool lettersOnly) |
| Adds a "text entry" area under the previously entered object. The max number of really displayable characters is 8, even if there are 9 placeholders (_) If longer than 8 chars, the first ones are replaced by a '..' The 9th placeholder is never filled. | |
| int | nbgl_layoutUpdateEnteredText (nbgl_layout_t *layout, uint8_t index, const char *text) |
| Updates an existing "text entry" area, created with nbgl_layoutAddEnteredText() | |
Implementation of predefined layouts management for Nano target, for Keyboard.
Implementation of predefined layouts management for Nano target, for Keypad.
Definition in file nbgl_layout_keyboard_nanos.c.
| int nbgl_layoutAddEnteredText | ( | nbgl_layout_t * | layout, |
| const char * | text, | ||
| bool | lettersOnly | ||
| ) |
Adds a "text entry" area under the previously entered object. The max number of really displayable characters is 8, even if there are 9 placeholders (_) If longer than 8 chars, the first ones are replaced by a '..' The 9th placeholder is never filled.
| layout | the current layout |
| text | string to display in the area |
| lettersOnly | if true, display 8 chars placeholders, otherwise 9 |
Definition at line 197 of file nbgl_layout_keyboard_nanos.c.
| int nbgl_layoutAddEnteredTextAdvanced | ( | nbgl_layout_t * | layout, |
| const char * | text, | ||
| bool | lettersOnly, | ||
| bool | obfuscated | ||
| ) |
Adds a "text entry" area under the previously entered object. The max number of really displayable characters is 8, even if there are 9 placeholders (_) If longer than 8 chars, the first ones are replaced by a '..' The 9th placeholder is never filled.
| layout | the current layout |
| text | string to display in the area |
| lettersOnly | if true, display 8 chars placeholders, otherwise 9 |
| obfuscated | if true, entered text is obfuscated |
Definition at line 151 of file nbgl_layout_keyboard_nanos.c.
| int nbgl_layoutAddKeyboard | ( | nbgl_layout_t * | layout, |
| const nbgl_layoutKbd_t * | kbdInfo | ||
| ) |
Creates a keyboard on bottom of the screen, with the given configuration.
| layout | the current layout |
| kbdInfo | configuration of the keyboard to draw (including the callback when touched) |
Definition at line 51 of file nbgl_layout_keyboard_nanos.c.
| int nbgl_layoutUpdateEnteredText | ( | nbgl_layout_t * | layout, |
| uint8_t | index, | ||
| const char * | text | ||
| ) |
Updates an existing "text entry" area, created with nbgl_layoutAddEnteredText()
| layout | the current layout |
| index | index of the text (return value of nbgl_layoutAddEnteredText()) |
| text | string to display in the area |
Definition at line 211 of file nbgl_layout_keyboard_nanos.c.
| 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.
| layout | the current layout |
| index | index returned by nbgl_layoutAddKeyboard() |
| keyMask | mask of keys to activate/deactivate on keyboard |
Definition at line 98 of file nbgl_layout_keyboard_nanos.c.