|
Embedded SDK
Embedded SDK
|
This structure contains a list of names to build a list of radio buttons (on the right part of screen), with for each a description (names array) The chosen item index is provided is the "index" argument of the callback. More...
#include <nbgl_content.h>
Public Attributes | ||
| union { | ||
| const char *const * names | ||
| array of strings giving the choices (nbChoices) More... | ||
| }; | ||
| bool | localized | |
| if set to true, use nameIds and not names | ||
| uint8_t | nbChoices | |
| number of choices | ||
| uint8_t | initChoice | |
| index of the current choice | ||
| uint8_t | token | |
| the token that will be used as argument of the callback | ||
| tune_index_e | tuneId | |
| if not NBGL_NO_TUNE, a tune will be played when selecting a radio button) | ||
| bool | vertical | |
| const nbgl_icon_details_t * | selectionIcon | |
| const char * | title | |
| Nano only and used in the horizontal flow (i.e. vertical is false): per-content header text shown above the choice label, e.g. "Keyboard layout". When NULL the SDK falls back to context.home.appName (the app name) or context.content.title depending on the use case. | ||
This structure contains a list of names to build a list of radio buttons (on the right part of screen), with for each a description (names array) The chosen item index is provided is the "index" argument of the callback.
Definition at line 321 of file nbgl_content.h.
| union { ... } nbgl_contentRadioChoice_t |
| uint8_t nbgl_contentRadioChoice_t::initChoice |
index of the current choice
Definition at line 330 of file nbgl_content.h.
| bool nbgl_contentRadioChoice_t::localized |
if set to true, use nameIds and not names
Definition at line 328 of file nbgl_content.h.
| const char* const* nbgl_contentRadioChoice_t::names |
array of strings giving the choices (nbChoices)
Definition at line 323 of file nbgl_content.h.
| uint8_t nbgl_contentRadioChoice_t::nbChoices |
number of choices
Definition at line 329 of file nbgl_content.h.
| const nbgl_icon_details_t* nbgl_contentRadioChoice_t::selectionIcon |
Nano only and used in the horizontal flow (i.e. vertical is false): optional small icon drawn underneath the choice label on the page corresponding to initChoice, so the user can tell which item is currently selected. NULL (default) means no marker.
Definition at line 339 of file nbgl_content.h.
| const char* nbgl_contentRadioChoice_t::title |
Nano only and used in the horizontal flow (i.e. vertical is false): per-content header text shown above the choice label, e.g. "Keyboard layout". When NULL the SDK falls back to context.home.appName (the app name) or context.content.title depending on the use case.
Definition at line 349 of file nbgl_content.h.
| uint8_t nbgl_contentRadioChoice_t::token |
the token that will be used as argument of the callback
Definition at line 331 of file nbgl_content.h.
| tune_index_e nbgl_contentRadioChoice_t::tuneId |
if not NBGL_NO_TUNE, a tune will be played when selecting a radio button)
Definition at line 333 of file nbgl_content.h.
| bool nbgl_contentRadioChoice_t::vertical |
Nano only: if true, render as a vertical menu list with radio buttons (all choices visible) instead of the default one-choice-per-page horizontal flow. Default false preserves existing behaviour.
Definition at line 335 of file nbgl_content.h.